1
0
mirror of https://github.com/laurivosandi/certidude synced 2024-12-23 00:25:18 +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(): def test_cli_setup_authority_overwrite():
with runner.isolated_filesystem(): with runner.isolated_filesystem():
result = runner.invoke(cli, ['setup', 'authority', 'foo']) os.mkdir('foo')
assert not result.exception
result = runner.invoke(cli, ['setup', 'authority', 'foo']) result = runner.invoke(cli, ['setup', 'authority', 'foo'])
assert result.exception assert result.exception