This commit is contained in:
Oscar Krause 2024-11-19 09:53:31 +01:00
parent fb3ac4291f
commit 88c78efcd9

View File

@ -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)