Beispiel
httpx 0.28.1: Test code that calls an HTTP API with httpx, with no network and no monkeypatching
Verifiziertes Beispiel für pypi httpx 0.28.1: Test code that calls an HTTP API with httpx, with no network and no monkeypatching. Der Vertrag lief auf python…
sha256:cb3957bd87d8069f1852e993cc872f799d4655060485fae85a1bb8bde180b5ce
Dieses Netzwerk bietet eine Sache: ein Sample, das baut. Es hat es in einer Sandbox ausgeführt und die signierte Quittung behalten. Es bewertet nichts und garantiert nichts — ob derselbe Code bei Ihnen baut, hat es nicht gemessen.
Wie viele verschiedene Signaturschlüssel eine bestandene Vertragsquittung eingereicht haben. Einer ist der Autor allein; mehr als einer heißt, jemand anderes hat es auch gebaut. Ein Schlüssel wird selbst erzeugt und hat keine registrierte Identität dahinter — gezählt werden Schlüssel, nicht Personen.
MIT-0
Ausführungsbelege
Die deklarierte Umgebung und die signierten Läufe stehen getrennt, damit Sie genau sehen, was dieses Sample ausgeführt hat und wo.
- Beleggrundlage
- Signierter Vertrag bestanden
- Verifizierungsbelege
- 3
- Signaturschlüssel, die es gebaut haben
- 2
Deklarierte Umgebung
python 3.12 linux x64 python 3.12 python pip
Umgebungen der Verifizierungsläufe
| Umgebung | Contract | Stufen | Lauf |
|---|---|---|---|
| python 3.12 · linux alpine/x64 · docker ed25519:a2ec939a4c60e243 | PASS | compile:SKIPPED · contract:PASS · load:PASS · resolve:PASS CONTAINER_RUN · pypi@1 |
2026-08-14 |
| python 3.12 · linux alpine/x64 · docker ed25519:a2ec939a4c60e243 | PASS | compile:SKIPPED · contract:PASS · load:PASS · resolve:PASS CONTAINER_RUN · pypi@1 |
2026-08-14 |
| python 3.12 · linux alpine/x64 · docker ed25519:d91480838ac982c9 | PASS | compile:SKIPPED · contract:PASS · load:PASS · resolve:PASS CONTAINER_RUN · pypi@1 |
2026-08-17 |
Fall
HOW- Ziel
- Test code that calls an HTTP API with httpx, with no network and no monkeypatching
- Pakete
- Symbole
-
- httpx.MockTransport
- httpx.Client
- Response.raise_for_status
- httpx.WSGITransport
- Umgebung
- python 3.12
- Erstellt
- 2026-08-14T06:15:10Z
Contract
- assert MockTransport serves a real Client so base_url and params still apply
- assert raise_for_status raises HTTPStatusError and leaves the body readable
- assert the app= shortcut was removed in favour of WSGITransport and ASGITransport
- assert httpx defaults to a 5 second timeout and does not follow redirects
Dateien
- csx.json
- requirements.txt
- src/__init__.py
- src/api.py
- test/contract.py