diff --git a/pkgs/clan-cli/default.nix b/pkgs/clan-cli/default.nix index 221f1e271..1badd227b 100644 --- a/pkgs/clan-cli/default.nix +++ b/pkgs/clan-cli/default.nix @@ -65,8 +65,7 @@ let cp -r ${src} ./src chmod +w -R ./src cd src - find . - ${checkPython}/bin/pytest + ${checkPython}/bin/python -m pytest ./tests touch $out ''; diff --git a/pkgs/clan-cli/tests/test_cli.py b/pkgs/clan-cli/tests/test_cli.py index a02c03933..3c61bee0b 100644 --- a/pkgs/clan-cli/tests/test_cli.py +++ b/pkgs/clan-cli/tests/test_cli.py @@ -4,7 +4,7 @@ import clan_cli import pytest -def test_no_args(capsys): +def test_no_args(capsys: pytest.CaptureFixture) -> None: clan_cli.main() captured = capsys.readouterr() assert captured.out.startswith("usage:")