包含背景任务的全量请求接口契约。
| 558 | # --------------------------------------------------------------------------- |
| 559 | |
| 560 | class 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 | # --------------------------------------------------------------------------- |
nothing calls this directly
no outgoing calls
no test coverage detected