diff --git a/tests/fixtures/client.py b/tests/fixtures/client.py index e71a3a2c1..a2d76ca69 100644 --- a/tests/fixtures/client.py +++ b/tests/fixtures/client.py @@ -38,9 +38,14 @@ def test_app(monkeypatch, request): if "keep.api.api" in sys.modules: importlib.reload(sys.modules["keep.api.api"]) + if "keep.api.config" in sys.modules: + importlib.reload(sys.modules["keep.api.config"]) + # Import and return the app instance from keep.api.api import get_app + from keep.api.config import on_starting + on_starting() app = get_app() # Manually trigger the startup event