fix(tests): two tests reach real HikCentral endpoints and wait out network timeouts (45 s per run) #216
Labels
No labels
blocked
bug
enhancement
high-priority
low-priority
needs-info
needs-triage
ready-for-agent
ready-for-human
referenced
research
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
gabogg/hikcentral#216
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Agent Brief
Category: bug
Summary: Two tests reach real HikCentral network endpoints and wait out their timeouts. That accounts for 45 s of every full test run, about a third of the suite, and breaks the rule that external endpoints are mocked.
Current behavior (measured on master
a7e89c6: 520 passed, 1 skipped, 134 s,pytest --durations):tests/test_docs.py::test_artemis_execution_endpoint_admin: 25.1 s. It posts to/api/docs/execute/artemis. That executes a real signed Artemis request (acsDoorList) against the configured server, and the test waits for the HTTP timeout. The autouse Artemis mock intests/conftest.pydoesn't cover this execution path.tests/test_api.py::test_probe_endpoints_typed_responses: 20.1 s. It monkeypatchesscan_hikcentral_ports, but/api/statusand/api/probe/statusstill make other real network probes, which time out.ArtemisClient,BumblebeeClient) so tests remain fully deterministic and offline." On a machine that can reach the server, these tests would send real requests to it.Desired behavior:
debug.signaturefield and the typed probe responses.tests/conftest.pyfails any test that opens a real outbound socket or HTTP connection, except to localhost and the ASGI test transport. The guard names the test and the target.Acceptance criteria:
--durations=25.Out of scope:
Found while measuring the suite for #217 (2026-10-02).
🤖 Generated with Claude Code
Tracked in draft PR #218 (fix/test-isolation), which closes this issue.
gabogg referenced this issue2026-10-03 08:11:19 +00:00