Commit 5b2e3af
committed
[PLT-0] Fix tests package import under console-script pytest
CI runs pytest as a console script, which never puts the project directory
on sys.path, so the new 'from tests.embedding_cleanup import ...' failed at
conftest load (ModuleNotFoundError: No module named 'tests'). Local runs
masked this because 'python -m pytest' adds the cwd. Insert the project
directory in conftest before the tests.* import; verified against all three
lanes with the console-script invocation.1 parent 93d03c2 commit 5b2e3af
1 file changed
Lines changed: 11 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
| 3 | + | |
3 | 4 | | |
| 5 | + | |
4 | 6 | | |
5 | 7 | | |
6 | 8 | | |
| |||
32 | 34 | | |
33 | 35 | | |
34 | 36 | | |
35 | | - | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
36 | 46 | | |
37 | 47 | | |
38 | 48 | | |
| |||
0 commit comments