1
0
mirror of https://github.com/laurivosandi/certidude synced 2024-12-22 16:25:17 +00:00

tests: Simplify 'ca-output directory exists' test

This commit is contained in:
Priit Laes 2015-09-29 15:53:11 +03:00
parent 5cddbe2a15
commit 94469f5416

View File

@ -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