From 94469f54163ca511fcde75a5e4373fd96c5a9659 Mon Sep 17 00:00:00 2001 From: Priit Laes Date: Tue, 29 Sep 2015 15:53:11 +0300 Subject: [PATCH] tests: Simplify 'ca-output directory exists' test --- tests/test_cli.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/tests/test_cli.py b/tests/test_cli.py index 6037fa2..23d3be9 100644 --- a/tests/test_cli.py +++ b/tests/test_cli.py @@ -44,8 +44,7 @@ def test_cli_setup_authority_invalid_name(): def test_cli_setup_authority_overwrite(): with runner.isolated_filesystem(): - result = runner.invoke(cli, ['setup', 'authority', 'foo']) - assert not result.exception + os.mkdir('foo') result = runner.invoke(cli, ['setup', 'authority', 'foo']) assert result.exception