66/113 tests failing — jose and asyncio infrastructure issues #26

Closed
opened 2026-05-14 15:12:17 +00:00 by Mark · 1 comment
Owner

Bug

Running pytest results in 66 failed, 35 passed, 12 errors. The test suite is majority-broken.

Root causes identified

  1. jose module resolution — Many tests fail with jose.exceptions.JWSError or similar JWT-related errors. The python-jose[cryptography]==3.3.0 dependency doesn't always resolve correctly depending on the Python environment. Tests fail with JWT encoding/decoding errors.

  2. Async test infrastructure — Some async tests fail with anyio stream errors (MemoryObjectReceiveStream closure), suggesting the async test fixtures aren't properly managing database sessions. SQLAlchemy connections are being closed before the test completes.

  3. Pydantic namespace warning — Field "model_number" has conflict with protected namespace "model_" — this affects the Pydantic model configuration.

Test breakdown

  • 35 passed
  • 66 failed
  • 12 errors
  • 0 skipped

Severity

RED Critical — Majority of test suite is broken. Core JWT authentication flow cannot be verified.

## Bug Running `pytest` results in 66 failed, 35 passed, 12 errors. The test suite is majority-broken. ## Root causes identified 1. **jose module resolution** — Many tests fail with `jose.exceptions.JWSError` or similar JWT-related errors. The `python-jose[cryptography]==3.3.0` dependency doesn't always resolve correctly depending on the Python environment. Tests fail with JWT encoding/decoding errors. 2. **Async test infrastructure** — Some async tests fail with `anyio` stream errors (`MemoryObjectReceiveStream` closure), suggesting the async test fixtures aren't properly managing database sessions. SQLAlchemy connections are being closed before the test completes. 3. **Pydantic namespace warning** — `Field "model_number" has conflict with protected namespace "model_"` — this affects the Pydantic model configuration. ## Test breakdown - 35 passed - 66 failed - 12 errors - 0 skipped ## Severity RED **Critical** — Majority of test suite is broken. Core JWT authentication flow cannot be verified.
Author
Owner

Fixed in commit. Closing.

Fixed in commit. Closing.
Mark closed this issue 2026-05-14 18:25:21 +00:00
Sign in to join this conversation.
No description provided.