From 88c78efcd987d3d5c275358ce55148e3ee3dce0c Mon Sep 17 00:00:00 2001 From: Oscar Krause Date: Tue, 19 Nov 2024 09:53:31 +0100 Subject: [PATCH] fixes --- test/main.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/test/main.py b/test/main.py index 2e70558..2cfacf4 100644 --- a/test/main.py +++ b/test/main.py @@ -11,14 +11,13 @@ from jose import jwt, jwk from jose.constants import ALGORITHMS from starlette.testclient import TestClient -from middleware import PatchMalformedJsonMiddleware - # add relative path to use packages as they were in the app/ dir sys.path.append('../') sys.path.append('../app') from app import main from app.util import load_key +from middleware import PatchMalformedJsonMiddleware main.app.add_middleware(PatchMalformedJsonMiddleware, enabled=True) client = TestClient(main.app)