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.
This commit is contained in:
GotthardG 2025-03-19 11:33:24 +01:00
parent 3ccf4ecc14
commit 1c44bc160b

View File

@ -11,7 +11,7 @@ def client():
yield test_client yield test_client
def test_login_success(): def test_login_success(client):
response = client.post( response = client.post(
"/auth/token/login", data={"username": "testuser", "password": "testpass"} "/auth/token/login", data={"username": "testuser", "password": "testpass"}
) )
@ -19,7 +19,7 @@ def test_login_success():
assert "access_token" in response.json() assert "access_token" in response.json()
def test_login_failure(): def test_login_failure(client):
response = client.post( response = client.post(
"/auth/token/login", data={"username": "wrong", "password": "wrongpass"} "/auth/token/login", data={"username": "wrong", "password": "wrongpass"}
) )
@ -27,7 +27,7 @@ def test_login_failure():
assert response.json() == {"detail": "Incorrect username or password"} assert response.json() == {"detail": "Incorrect username or password"}
def test_protected_route(): def test_protected_route(client):
# Step 1: Login # Step 1: Login
response = client.post( response = client.post(
"/auth/token/login", data={"username": "testuser", "password": "testpass"} "/auth/token/login", data={"username": "testuser", "password": "testpass"}