hypothesis-openapi

Hypothesis plugin for generating valid Open API documents


Keywords
hypothesis, openapi, testing
License
MIT
Install
pip install hypothesis-openapi==0.1.0

Documentation

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.