(status_code: int, payload: object, url: str = 'http://search.local')
| 27 | |
| 28 | |
| 29 | def _json_response(status_code: int, payload: object, url: str = 'http://search.local') -> httpx.Response: |
| 30 | return httpx.Response( |
| 31 | status_code, |
| 32 | json=payload, |
| 33 | request=httpx.Request('GET', url), |
| 34 | ) |
| 35 | |
| 36 | |
| 37 | def _usage_stub(): |