Skip to main content

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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

hypothesis-jsonschema-unfit-0.1.0.tar.gz (3.0 kB view details)

Uploaded Source

Built Distribution

File details

Details for the file hypothesis-jsonschema-unfit-0.1.0.tar.gz.

File metadata

  • Download URL: hypothesis-jsonschema-unfit-0.1.0.tar.gz
  • Upload date:
  • Size: 3.0 kB
  • Tags: Source
  • Uploaded using 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

File hashes

Hashes for hypothesis-jsonschema-unfit-0.1.0.tar.gz
Algorithm Hash digest
SHA256 72a697bb5f207c770a4fb998ed0446a7673bb84c26b4b228c5be03c4d7b8c004
MD5 696d1cbfd53df476c5d0cae286f0adbe
BLAKE2b-256 fca3d9996fd16b9f864f1047e2c8c723857b826107c49483da89d284c60b413d

See more details on using hashes here.

File details

Details for the file hypothesis_jsonschema_unfit-0.1.0-py3-none-any.whl.

File metadata

  • Download URL: hypothesis_jsonschema_unfit-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 3.2 kB
  • Tags: Python 3
  • Uploaded using 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

File hashes

Hashes for hypothesis_jsonschema_unfit-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 2ebdc9a38dd6d061c3a29800b5f674b4fb905556d8fd5a49357abe5977392914
MD5 96d1f61ad4a6786952abdb68d76fc250
BLAKE2b-256 4f27c79760a1f132abd11dff844a9539c9b7cf641469c2cb72daa1382afa36f4

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page