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

tests: Lazier imports

This commit is contained in:
Lauri Võsandi 2017-05-01 17:06:39 +00:00
parent bba1edb070
commit 77d7d9fbab

View File

@ -1,7 +1,6 @@
import subprocess
import pwd
from click.testing import CliRunner
from certidude.cli import entry_point as cli
from datetime import datetime, timedelta
import pytest
@ -70,6 +69,7 @@ def test_cli_setup_authority():
if os.path.exists("/etc/openvpn/keys"):
shutil.rmtree("/etc/openvpn/keys")
from certidude.cli import entry_point as cli
from certidude import const
result = runner.invoke(cli, ['setup', 'authority'])