From 56d2a1c3e9fc4eefc5c67d2c6ee11f0c5ce94316 Mon Sep 17 00:00:00 2001
From: GotthardG <51994228+GotthardG@users.noreply.github.com>
Date: Wed, 19 Mar 2025 10:43:59 +0100
Subject: [PATCH] Update dependencies and improve Python path handling

Updated several frontend dependencies including MUI packages and added new ones like `@mui/x-charts`. Adjusted the Python path setup in the CI configuration to correctly point to the `aaredb` backend, ensuring accurate module resolution.
---
 backend/tests/test_auth.py | 7 ++++++-
 1 file changed, 6 insertions(+), 1 deletion(-)

diff --git a/backend/tests/test_auth.py b/backend/tests/test_auth.py
index fb79b81..f811cd3 100644
--- a/backend/tests/test_auth.py
+++ b/backend/tests/test_auth.py
@@ -1,9 +1,14 @@
 # tests/test_auth.py
 
+import pytest
 from fastapi.testclient import TestClient
 from backend.main import app
 
-client = TestClient(app)
+
+@pytest.fixture(scope="module")
+def client():
+    with TestClient(app) as test_client:  # ensures lifespan/startup executes
+        yield test_client
 
 
 def test_login_success():
-- 
GitLab