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.1.tar.gz (6.7 kB view details)

Uploaded Source

Built Distribution

hypothesis_openapi-0.2.1-py3-none-any.whl (7.4 kB view details)

Uploaded Python 3

File details

Details for the file hypothesis_openapi-0.2.1.tar.gz.

File metadata

  • Download URL: hypothesis_openapi-0.2.1.tar.gz
  • Upload date:
  • Size: 6.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/5.1.0 CPython/3.12.4

File hashes

Hashes for hypothesis_openapi-0.2.1.tar.gz
Algorithm Hash digest
SHA256 0f66910de8a749667077e22b58950a40864fbac2d6a8478a1700bcbeec6ad713
MD5 c1afe83232b95128db2aab5fe95dfd13
BLAKE2b-256 c30f4e9ef94887948c67e6541036e46eb81796e185785ac45d60a5f08e7dc792

See more details on using hashes here.

File details

Details for the file hypothesis_openapi-0.2.1-py3-none-any.whl.

File metadata

File hashes

Hashes for hypothesis_openapi-0.2.1-py3-none-any.whl
Algorithm Hash digest
SHA256 a65503565fbe49fb7e7c9abaa7738de781683799ac701ddcc34b43f7098d6740
MD5 be7f78a58b68d57b8071d9596f49b4eb
BLAKE2b-256 f1f516674273d52ea38ee22ede86b8a0986945501859763711974507c50ad66b

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