Skip to content

Commit 77c203b

Browse files
committed
fix(app-business-reviews): point tests/conftest.py at integration root
The previous conftest inserted the tests directory itself onto sys.path, which is a no-op for the intended purpose of making the integration's modules importable from test files. Insert the parent (integration root) instead, matching the pattern from PRs #280, #289, #306, and #307.
1 parent d18a4e7 commit 77c203b

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
import sys
21
import os
2+
import sys
33

4-
# Allow 'from context import ...' to work when pytest runs from repo root
5-
sys.path.insert(0, os.path.dirname(__file__))
4+
# Put the integration root on sys.path so test files can use plain imports
5+
sys.path.insert(0, os.path.abspath(os.path.join(os.path.dirname(__file__), "..")))

0 commit comments

Comments
 (0)