From f9c1bcb9a1f0c5c4f988ca28e813efb93fd51803 Mon Sep 17 00:00:00 2001 From: Hugo Osvaldo Barrera Date: Sat, 27 Feb 2016 23:08:14 -0300 Subject: [PATCH] Add test when syncing inexistent pair --- tests/cli/test_main.py | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/tests/cli/test_main.py b/tests/cli/test_main.py index 23d5895..bb89c76 100644 --- a/tests/cli/test_main.py +++ b/tests/cli/test_main.py @@ -44,6 +44,13 @@ def test_simple_run(tmpdir, runner): 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): runner.write_with_general(dedent(''' [pair my_pair]