Skip to main content

Hypothesis plugin for generating valid Open API documents

Project description

hypothesis-openapi

CI Coverage Version Python versions License

Hypothesis plugin for generating valid Open API documents.

Usage

from hypothesis import given
from hypothesis_openapi import openapis


@given(openapis(version="2.0"))
def test_openapi(spec):
    assert spec["swagger"] == "2.0"
    assert "info" in spec

License

The code in this project is licensed under MIT license. By contributing to hypothesis-openapi, you agree that your contributions will be licensed under its MIT license.

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_openapi-0.2.0.tar.gz (6.5 kB view hashes)

Uploaded Source

Built Distribution

hypothesis_openapi-0.2.0-py3-none-any.whl (7.2 kB view hashes)

Uploaded Python 3

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