| 1 | Source: python-aiointercept |
| 2 | Maintainer: Home Assistant Team <[email protected]> |
| 3 | Uploaders: |
| 4 | Edward Betts <[email protected]>, |
| 5 | Section: python |
| 6 | Build-Depends: |
| 7 | debhelper-compat (= 14), |
| 8 | dh-sequence-python3, |
| 9 | dh-sequence-single-binary, |
| 10 | pybuild-plugin-pyproject, |
| 11 | python3-all, |
| 12 | python3-hatchling, |
| 13 | Build-Depends-Indep: |
| 14 | python3-aiohttp <!nocheck>, |
| 15 | python3-ddt <!nocheck>, |
| 16 | python3-multidict <!nocheck>, |
| 17 | python3-pytest <!nocheck>, |
| 18 | python3-pytest-asyncio <!nocheck>, |
| 19 | python3-yarl <!nocheck>, |
| 20 | Standards-Version: 4.7.4 |
| 21 | Homepage: https://github.com/Polandia94/aiointercept |
| 22 | Vcs-Browser: https://salsa.debian.org/homeassistant-team/deps/python-aiointercept |
| 23 | Vcs-Git: https://salsa.debian.org/homeassistant-team/deps/python-aiointercept.git |
| 24 | Testsuite: autopkgtest-pkg-pybuild |
| 25 | |
| 26 | Package: python3-aiointercept |
| 27 | Architecture: all |
| 28 | Description: mock HTTP request interceptor for aiohttp clients |
| 29 | This library registers expected HTTP requests and serves configured responses |
| 30 | from a local test server. It can match requests by URL, HTTP method, or |
| 31 | regular expression, then return status codes, headers, raw bodies, JSON |
| 32 | payloads, reason phrases, or callback-generated responses. |
| 33 | . |
| 34 | Requests are received by the local server and recorded for later inspection. |
| 35 | The recorded data includes method, normalized URL, headers, query parameters, |
| 36 | and request body. Helpers are provided for checking whether particular |
| 37 | requests were made. |
| 38 | . |
| 39 | The library can be used as a context manager, decorator, or pytest fixture. In |
| 40 | its default mode, client code is pointed at the local server URL. It can also |
| 41 | patch DNS resolution so configured external hostnames are directed to the |
| 42 | local server, with optional passthrough rules for selected hosts or unmatched |
| 43 | requests. |