Description
Two integration tests intermittently fail with PermissionError: Unauthorized in CI. They pass locally and on re-run — classic flaky behavior.
Affected tests
tests/zndraw/test_edit_lock_integration.py::test_lock_holder_can_modify (observed on Python 3.11)
tests/zndraw/worker/test_per_room.py::test_guest_can_register_room_job (observed on Python 3.13)
Error
Both fail with:
PermissionError: Unauthorized
Raised from the client's raise_for_status() method when the server returns 401.
Context
To investigate
Description
Two integration tests intermittently fail with
PermissionError: Unauthorizedin CI. They pass locally and on re-run — classic flaky behavior.Affected tests
tests/zndraw/test_edit_lock_integration.py::test_lock_holder_can_modify(observed on Python 3.11)tests/zndraw/worker/test_per_room.py::test_guest_can_register_room_job(observed on Python 3.13)Error
Both fail with:
Raised from the client's
raise_for_status()method when the server returns 401.Context
To investigate
test_settingsautouse fixture properly isolates env vars between tests/v1/health