An experimental project for the generation of JSON data that does NOT match the given JSON schema.
from hypothesis import given
from hypothesis_jsonschema_unfit import not_from_schema
SCHEMA = {
"items": {
"type": "object",
"required": ["key1", "key2"],
"properties": {"key1": {"type": "string"}, "key2": {"type": "integer"}},
},
"type": "array",
"minItems": 4,
}
@given(not_from_schema(SCHEMA))
def test(instance):
...
Release files for hypothesis-jsonschema-unfit 0.1.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| hypothesis-jsonschema-unfit-0.1.0.tar.gz | 3.0 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| hypothesis_jsonschema_unfit-0.1.0-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 6.2 kB
Release files / hypothesis-jsonschema-unfit-0.1.0.tar.gz
| Download URL | hypothesis-jsonschema-unfit-0.1.0.tar.gz |
|---|---|
| Size | 3.0 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
72a697bb5f207c770a4fb998ed0446a7673bb84c26b4b228c5be03c4d7b8c004
|
|
BLAKE2b-256 checksum How to use checksums |
fca3d9996fd16b9f864f1047e2c8c723857b826107c49483da89d284c60b413d
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/2.0.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.2.0 requests-toolbelt/0.9.1 tqdm/4.36.1 CPython/3.7.4
|
Release files / hypothesis_jsonschema_unfit-0.1.0-py3-none-any.whl
| Download URL | hypothesis_jsonschema_unfit-0.1.0-py3-none-any.whl |
|---|---|
| Size | 3.2 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
2ebdc9a38dd6d061c3a29800b5f674b4fb905556d8fd5a49357abe5977392914
|
|
BLAKE2b-256 checksum How to use checksums |
4f27c79760a1f132abd11dff844a9539c9b7cf641469c2cb72daa1382afa36f4
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/2.0.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.2.0 requests-toolbelt/0.9.1 tqdm/4.36.1 CPython/3.7.4
|