diff --git a/check_done/command.py b/check_done/command.py index 0bc9b1e..42fe5f5 100644 --- a/check_done/command.py +++ b/check_done/command.py @@ -76,5 +76,5 @@ def main(): sys.exit(check_done_command()) -if __name__ == "__main__": +if __name__ == "__main__": # pragma: no cover main() diff --git a/tests/test_command.py b/tests/test_command.py index 14d2918..f1039a3 100644 --- a/tests/test_command.py +++ b/tests/test_command.py @@ -3,7 +3,6 @@ import logging import os import re -import subprocess import tempfile from pathlib import Path from unittest.mock import patch @@ -126,17 +125,6 @@ def test_can_check_done_demo_project(caplog): ) -@pytest.mark.skipif( - not HAS_DEMO_CHECK_DONE_ORGANIZATION_PROJECT_CONFIGURED, - reason=REASON_SHOULD_HAVE_DEMO_CHECK_DONE_ORGANIZATION_PROJECT_CONFIGURED, -) -def test_main_script(): - path = Path(__file__).resolve().parent.parent / "check_done" / "command.py" - command = f"poetry run python {path.as_posix()!s} --config {_PATH_TO_TEST_CONFIG.as_posix()!s}" - result = subprocess.run(command, capture_output=True, text=True, shell=True, check=False) - assert "Checking project items" in result.stderr - - def test_can_handle_keyboard_interrupt(): with patch("check_done.command.execute", side_effect=KeyboardInterrupt): exit_code = check_done_command([])