No project description provided
Project description
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):
...
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Close
Hashes for hypothesis-jsonschema-unfit-0.1.0.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 72a697bb5f207c770a4fb998ed0446a7673bb84c26b4b228c5be03c4d7b8c004 |
|
MD5 | 696d1cbfd53df476c5d0cae286f0adbe |
|
BLAKE2b-256 | fca3d9996fd16b9f864f1047e2c8c723857b826107c49483da89d284c60b413d |
Close
Hashes for hypothesis_jsonschema_unfit-0.1.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 2ebdc9a38dd6d061c3a29800b5f674b4fb905556d8fd5a49357abe5977392914 |
|
MD5 | 96d1f61ad4a6786952abdb68d76fc250 |
|
BLAKE2b-256 | 4f27c79760a1f132abd11dff844a9539c9b7cf641469c2cb72daa1382afa36f4 |