Adds basic test for convert command.
This commit is contained in:
13
tests/commands/test_convert.py
Normal file
13
tests/commands/test_convert.py
Normal file
@ -0,0 +1,13 @@
|
||||
from bonobo.util.environ import change_working_directory
|
||||
from bonobo.util.testing import all_runners
|
||||
|
||||
|
||||
@all_runners
|
||||
def test_convert(runner, tmpdir):
|
||||
csv_content = 'id;name\n1;Romain'
|
||||
tmpdir.join('in.csv').write(csv_content)
|
||||
|
||||
with change_working_directory(tmpdir):
|
||||
runner('convert', 'in.csv', 'out.csv')
|
||||
|
||||
assert tmpdir.join('out.csv').read().strip() == csv_content
|
||||
Reference in New Issue
Block a user