clan-cli/tests: fixup imports

This commit is contained in:
Jörg Thalheim
2023-07-21 13:30:35 +02:00
parent 875ee61aa0
commit 7f937077cf
2 changed files with 6 additions and 6 deletions

View File

@@ -1,11 +1,11 @@
import sys
import clan
import clan_cli
import pytest
def test_no_args(capsys):
clan.clan()
clan_cli.main()
captured = capsys.readouterr()
assert captured.out.startswith("usage:")
@@ -13,6 +13,6 @@ def test_no_args(capsys):
def test_help(capsys, monkeypatch):
monkeypatch.setattr(sys, "argv", ["", "--help"])
with pytest.raises(SystemExit):
clan.clan()
clan_cli.main()
captured = capsys.readouterr()
assert captured.out.startswith("usage:")