Skip to content

Commit 2fa5cd8

Browse files
committed
#31 Clean up test case and coverage
1 parent 344f2de commit 2fa5cd8

File tree

2 files changed

+1
-13
lines changed

2 files changed

+1
-13
lines changed

check_done/command.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,5 +76,5 @@ def main():
7676
sys.exit(check_done_command())
7777

7878

79-
if __name__ == "__main__":
79+
if __name__ == "__main__": # pragma: no cover
8080
main()

tests/test_command.py

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@
33
import logging
44
import os
55
import re
6-
import subprocess
76
import tempfile
87
from pathlib import Path
98
from unittest.mock import patch
@@ -126,17 +125,6 @@ def test_can_check_done_demo_project(caplog):
126125
)
127126

128127

129-
@pytest.mark.skipif(
130-
not HAS_DEMO_CHECK_DONE_ORGANIZATION_PROJECT_CONFIGURED,
131-
reason=REASON_SHOULD_HAVE_DEMO_CHECK_DONE_ORGANIZATION_PROJECT_CONFIGURED,
132-
)
133-
def test_main_script():
134-
path = Path(__file__).resolve().parent.parent / "check_done" / "command.py"
135-
command = f"poetry run python {path.as_posix()!s} --config {_PATH_TO_TEST_CONFIG.as_posix()!s}"
136-
result = subprocess.run(command, capture_output=True, text=True, shell=True, check=False)
137-
assert "Checking project items" in result.stderr
138-
139-
140128
def test_can_handle_keyboard_interrupt():
141129
with patch("check_done.command.execute", side_effect=KeyboardInterrupt):
142130
exit_code = check_done_command([])

0 commit comments

Comments
 (0)