We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 4cb12d4 commit 2037c0bCopy full SHA for 2037c0b
2 files changed
.github/workflows/ci.yml
@@ -25,4 +25,6 @@ jobs:
25
pip install -r requirements.txt
26
27
- name: Run tests
28
- run: pytest -q
+ env:
29
+ PYTHONPATH: .
30
+ run: python -m pytest -q
tests/test_imports.py
@@ -2,6 +2,13 @@
2
#Plataforma de Estudos: [DIO - Digital Innovation One]
3
4
import importlib
5
+import sys
6
+from pathlib import Path
7
+
8
9
+PROJECT_ROOT = Path(__file__).resolve().parents[1]
10
+if str(PROJECT_ROOT) not in sys.path:
11
+ sys.path.insert(0, str(PROJECT_ROOT))
12
13
14
def test_import_main_entrypoint():
0 commit comments