mirror of
https://github.com/samsonjs/vdirsyncer.git
synced 2026-04-27 14:57:41 +00:00
Add test when syncing inexistent pair
This commit is contained in:
parent
c66432e2ee
commit
f9c1bcb9a1
1 changed files with 7 additions and 0 deletions
|
|
@ -44,6 +44,13 @@ def test_simple_run(tmpdir, runner):
|
||||||
assert tmpdir.join('path_b/haha.txt').read() == 'UID:haha'
|
assert tmpdir.join('path_b/haha.txt').read() == 'UID:haha'
|
||||||
|
|
||||||
|
|
||||||
|
def test_sync_inexistant_pair(tmpdir, runner):
|
||||||
|
runner.write_with_general("")
|
||||||
|
result = runner.invoke(['sync', 'foo'])
|
||||||
|
assert result.exception
|
||||||
|
assert 'pair foo does not exist.' in result.output.lower()
|
||||||
|
|
||||||
|
|
||||||
def test_debug_connections(tmpdir, runner):
|
def test_debug_connections(tmpdir, runner):
|
||||||
runner.write_with_general(dedent('''
|
runner.write_with_general(dedent('''
|
||||||
[pair my_pair]
|
[pair my_pair]
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue