MCPcopy Create free account
hub / github.com/Tong89/smartNode / TestAllRequestsWithBackgroundEndpoint

Class TestAllRequestsWithBackgroundEndpoint

tests/test_api_integration.py:560–569  ·  view source on GitHub ↗

包含背景任务的全量请求接口契约。

Source from the content-addressed store, hash-verified

558# ---------------------------------------------------------------------------
559
560class TestAllRequestsWithBackgroundEndpoint:
561 """包含背景任务的全量请求接口契约。"""
562
563 def test_returns_200(self, client):
564 resp = client.get("/api/all_requests_with_background")
565 assert resp.status_code == 200
566
567 def test_response_is_list(self, client):
568 data = _json(client.get("/api/all_requests_with_background"))
569 assert isinstance(data, list)
570
571
572# ---------------------------------------------------------------------------

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected