From 1c44bc160bf80fa9e559e97b490de3561750e474 Mon Sep 17 00:00:00 2001 From: GotthardG <51994228+GotthardG@users.noreply.github.com> Date: Wed, 19 Mar 2025 11:33:24 +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 | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/backend/tests/test_auth.py b/backend/tests/test_auth.py index f811cd3..25a95a6 100644 --- a/backend/tests/test_auth.py +++ b/backend/tests/test_auth.py @@ -11,7 +11,7 @@ def client(): yield test_client -def test_login_success(): +def test_login_success(client): response = client.post( "/auth/token/login", data={"username": "testuser", "password": "testpass"} ) @@ -19,7 +19,7 @@ def test_login_success(): assert "access_token" in response.json() -def test_login_failure(): +def test_login_failure(client): response = client.post( "/auth/token/login", data={"username": "wrong", "password": "wrongpass"} ) @@ -27,7 +27,7 @@ def test_login_failure(): assert response.json() == {"detail": "Incorrect username or password"} -def test_protected_route(): +def test_protected_route(client): # Step 1: Login response = client.post( "/auth/token/login", data={"username": "testuser", "password": "testpass"} -- GitLab