No tests for the Tank01 client retry path #437

Closed
opened 2026-08-31 16:42:56 +02:00 by johnsturgeon · 0 comments
Owner

_http_get_with_retry (app/tank01_api/client.py) handles transient 501/502/503, httpx.RequestError, and exponential backoff. It has no coverage.

The equivalent tests existed as TestRetries in tests/test_tank01_api.py and went out with that file when NflApi was deleted. tests/test_tank01_client.py covers shapes and params but never a non-200.

Worth having: this is a metered API on someone else's infrastructure.

`_http_get_with_retry` (`app/tank01_api/client.py`) handles transient 501/502/503, `httpx.RequestError`, and exponential backoff. It has no coverage. The equivalent tests existed as `TestRetries` in `tests/test_tank01_api.py` and went out with that file when `NflApi` was deleted. `tests/test_tank01_client.py` covers shapes and params but never a non-200. Worth having: this is a metered API on someone else's infrastructure.
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
johnsturgeon/tgfp-web#437
No description provided.