Hypothesis plugin for generating valid Open API documents
Project description
hypothesis-openapi
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
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Close
Hashes for hypothesis_openapi-0.1.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | d71dd8080052ed4f8b10bf3835129b4f074c28f6e956718aabbdd5453669dde3 |
|
MD5 | f9f0878b2722fe602cb8c8c46d5a0a21 |
|
BLAKE2b-256 | 1cb1347f37c61d9cf4a2a1a279a406e735ceb8f1d0de0cdabe8c343d6b7e4cb6 |