Skip to content

Commit f421d48

Browse files
committed
Add absolute path in test_setup.py
1 parent feb44fd commit f421d48

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

app/serve.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,6 @@
33
import time
44
import logging
55

6-
import sys, os
7-
sys.path.append(os.path.dirname(os.path.dirname(__file__)))
86

97

108
# -----------------------------

tests/test_setup.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,9 @@
22
from fastapi.testclient import TestClient
33
from app.serve import app
44

5+
import sys, os
6+
sys.path.append(os.path.dirname(os.path.dirname(__file__)))
7+
58
# Initialize test client
69
client = TestClient(app)
710

0 commit comments

Comments
 (0)