mirror of
https://github.com/samsonjs/vdirsyncer.git
synced 2026-03-31 09:55:55 +00:00
Fix tests
This commit is contained in:
parent
4b25075b97
commit
97d65ab222
1 changed files with 2 additions and 2 deletions
|
|
@ -56,13 +56,13 @@ def test_full(tmpdir, runner):
|
|||
|
||||
foo = tmpdir.mkdir('foo')
|
||||
|
||||
result = runner.invoke(['repair', 'foo'])
|
||||
result = runner.invoke(['repair', 'foo'], input='y')
|
||||
assert not result.exception
|
||||
|
||||
foo.join('item.txt').write('BEGIN:VCARD\nEND:VCARD')
|
||||
foo.join('toobroken.txt').write('')
|
||||
|
||||
result = runner.invoke(['repair', 'foo'])
|
||||
result = runner.invoke(['repair', 'foo'], input='y')
|
||||
assert not result.exception
|
||||
assert 'No UID' in result.output
|
||||
assert 'warning: Item toobroken.txt can\'t be parsed, skipping' \
|
||||
|
|
|
|||
Loading…
Reference in a new issue