mirror of
https://github.com/laurivosandi/certidude
synced 2024-12-22 16:25:17 +00:00
tests: Lazier imports
This commit is contained in:
parent
bba1edb070
commit
77d7d9fbab
@ -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'])
|
||||
|
Loading…
Reference in New Issue
Block a user