Skip to content

Commit 0658ef8

Browse files
authored
Modify test_gui.py to include main.py import path
Add repository root to sys.path for importing main.py
1 parent 7bb3666 commit 0658ef8

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

tests/test_gui.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,9 @@
11
import os
22
import pytest
3+
4+
# Add the repository root to sys.path so we can import main.py
5+
sys.path.insert(0, os.path.abspath(os.path.join(os.path.dirname(__file__), "..")))
6+
37
from main import launch_app
48

59
# Ensure Qt runs in offscreen mode (headless)

0 commit comments

Comments
 (0)