-
Notifications
You must be signed in to change notification settings - Fork 77
Open
Description
I found some sporadic failures in the pytests while running: pytest src/tests. The tests are attached below:
=============================================== short test summary info ===============================================
FAILED src/tests/authorization/test_authorization.py::test_get_submission_by_id[latest] - AssertionError: assert '2026-02-12T10:55:41.703324' < '2026-02-12T10:55:41.703324'
FAILED src/tests/routers/resource_routers/test_router_dataset_generic_fields.py::test_update_aiod_entry[latest] - assert datetime.datetime(2026, 2, 12, 10, 56, 7, 459351, tzinfo=<UTC>) < datetime.datetime(2026, 2, 12, 10, 56, 7, ...
FAILED src/tests/authorization/test_authorization.py::test_get_submission_by_id[v3] - AssertionError: assert '2026-02-12T10:56:37.685088' < '2026-02-12T10:56:37.685088'
FAILED src/tests/routers/generic/test_router_delete.py::test_delete_requires_admin[owner0-other0] - AssertionError: assert 403 == <HTTPStatus.UNAUTHORIZED: 401>
FAILED src/tests/routers/generic/test_router_delete.py::test_delete_requires_admin[owner1-other1] - AssertionError: assert 403 == <HTTPStatus.UNAUTHORIZED: 401>
FAILED src/tests/test_authentication.py::test_happy_path - AssertionError: Not all requests have been executed [('POST', 'http://keycloak:8080/aiod-auth/realms/aiod/protocol/...
FAILED src/tests/test_authentication.py::test_happy_path_privileged - AssertionError: Not all requests have been executed [('POST', 'http://keycloak:8080/aiod-auth/realms/aiod/protocol/...
FAILED src/tests/test_authentication.py::test_inactive_user - Failed: DID NOT RAISE <class 'fastapi.exceptions.HTTPException'>
======================== 8 failed, 846 passed, 6 skipped, 13510 warnings in 119.74s (0:01:59) =========================These failures happen sometimes while running pytests locally (2 out of 9 times faced). This needs a bit investigation.
source: aiondemand/aiondemand#55 (comment)
PO #681
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels