jj-district42
⚠️ This package has been renamed to jj-d42. The jj-district42 package on PyPI is no longer maintained. For updates and improvements, please use jj-d42 going forward.
Installation
pip3 install jj-district42
Usage
import jj
import httpx
from jj.mock import mocked
from jj_district42 import HistorySchema
from valera import validate_or_fail
matcher = jj.match("GET", "/users")
response = jj.Response(status=200, json=[])
with mocked(matcher, response) as mock:
resp = httpx.get("http://localhost:8080/users", params={"user_id": 1})
assert validate_or_fail(
HistorySchema % [
{
"request": {
"method": "GET",
"path": "/users",
"params": {"user_id": "1"},
}
}
],
mock.history
)
Release files for jj-district42 1.2.2
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| jj_district42-1.2.2.tar.gz | 18.5 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| jj_district42-1.2.2-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 54.1 kB
Release files / jj_district42-1.2.2.tar.gz
| Download URL | jj_district42-1.2.2.tar.gz |
|---|---|
| Size | 18.5 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
2bab3a4fad4d21058d9820f7b864675c2eaaeb353ba069dc74938fbc7d4cac1c
|
|
BLAKE2b-256 checksum How to use checksums |
f1ff975f43833f9552770ae33acfe0c726ae500c47f132c1faa0b85382458dee
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/5.1.1 CPython/3.11.10
|
Release files / jj_district42-1.2.2-py3-none-any.whl
| Download URL | jj_district42-1.2.2-py3-none-any.whl |
|---|---|
| Size | 35.7 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
44aea0f042c3c3a26b310d5a47e06b4feb69302c7fb9e7b0c1fef1def2c16078
|
|
BLAKE2b-256 checksum How to use checksums |
73394957297b4350f15273dc1c8a285e1dd4d45499a12e06e776e785b1ba3246
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/5.1.1 CPython/3.11.10
|