diff --git a/tests/test_main.py b/tests/test_main.py new file mode 100644 index 0000000..f387c20 --- /dev/null +++ b/tests/test_main.py @@ -0,0 +1,16 @@ +import subprocess +import sys +from pathlib import Path + + +def test_main_runs_successfully(): + project_root = Path(__file__).resolve().parents[1] + result = subprocess.run( + [sys.executable, "src/main.py"], + cwd=project_root, + capture_output=True, + text=True, + timeout=10, + ) + + assert result.returncode == 0, result.stdout + result.stderr