Skip to content

Commit dfed724

Browse files
Fix test case for __main__
1 parent db5c252 commit dfed724

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

tests/test_main.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,12 @@
11
import subprocess
22

3+
from python_project import __main__
4+
35

46
def test_main_process():
57
completed_process = subprocess.run(["python", "-m", "python_project"], capture_output=True, text=True)
68
assert completed_process.returncode == 0
79

810

911
def test_main_function():
10-
assert 0 == 0
12+
assert __main__.main() == 0

0 commit comments

Comments
 (0)