mirror of
https://git.collinwebdesigns.de/oscar.krause/fastapi-dls.git
synced 2024-11-23 15:31:00 +03:00
fixes
This commit is contained in:
parent
fb3ac4291f
commit
88c78efcd9
@ -11,14 +11,13 @@ from jose import jwt, jwk
|
|||||||
from jose.constants import ALGORITHMS
|
from jose.constants import ALGORITHMS
|
||||||
from starlette.testclient import TestClient
|
from starlette.testclient import TestClient
|
||||||
|
|
||||||
from middleware import PatchMalformedJsonMiddleware
|
|
||||||
|
|
||||||
# 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 load_key
|
from app.util import load_key
|
||||||
|
from middleware import PatchMalformedJsonMiddleware
|
||||||
|
|
||||||
main.app.add_middleware(PatchMalformedJsonMiddleware, enabled=True)
|
main.app.add_middleware(PatchMalformedJsonMiddleware, enabled=True)
|
||||||
client = TestClient(main.app)
|
client = TestClient(main.app)
|
||||||
|
Loading…
Reference in New Issue
Block a user