跳转到主要内容

未提供项目描述

项目描述

一个用于生成不符合给定JSON模式的JSON数据的实验性项目。

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):
    ...

项目详情


下载文件

为您的平台下载文件。如果您不确定选择哪个,请了解更多关于 安装包 的信息。

源代码分布

hypothesis-jsonschema-unfit-0.1.0.tar.gz (3.0 kB 查看哈希值)

上传时间: 源代码

构建分布

hypothesis_jsonschema_unfit-0.1.0-py3-none-any.whl (3.2 kB 查看哈希值)

上传时间: Python 3

由以下支持