From fe3649f9162c11a815744a68aaa1c0d588c2d294 Mon Sep 17 00:00:00 2001 From: FoxVoland Date: Wed, 16 Sep 2026 21:36:17 +0300 Subject: [PATCH] [+] temporal test --- tests/test_main.py | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100644 tests/test_main.py 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