clan-cli: enable mypy for tests

This commit is contained in:
DavHau
2023-07-21 13:34:35 +02:00
parent a05c550b41
commit e806b5549d
4 changed files with 8 additions and 10 deletions

View File

@@ -10,7 +10,7 @@ def test_no_args(capsys):
assert captured.out.startswith("usage:")
def test_help(capsys, monkeypatch):
def test_help(capsys: pytest.CaptureFixture, monkeypatch: pytest.MonkeyPatch) -> None:
monkeypatch.setattr(sys, "argv", ["", "--help"])
with pytest.raises(SystemExit):
clan_cli.main()