forked from oscar.krause/fastapi-dls
fixed imports
This commit is contained in:
parent
9ab0eb4796
commit
d4ca6ba1aa
@ -11,13 +11,12 @@ from jose.constants import ALGORITHMS
|
|||||||
from starlette.testclient import TestClient
|
from starlette.testclient import TestClient
|
||||||
import sys
|
import sys
|
||||||
|
|
||||||
from app.util import generate_key, load_key
|
|
||||||
|
|
||||||
# add relative path to use packages as they were in the app/ dir
|
# add relative path to use packages as they were in the app/ dir
|
||||||
sys.path.append('../')
|
sys.path.append('../')
|
||||||
sys.path.append('../app')
|
sys.path.append('../app')
|
||||||
|
|
||||||
from app import main
|
from app import main
|
||||||
|
from app.util import generate_key, load_key
|
||||||
|
|
||||||
client = TestClient(main.app)
|
client = TestClient(main.app)
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user