Automatically test your swagger API
Project description
swagger-tester
Swagger-tester will test automatically your swagger API. Currently only swagger API made with connexion are supported.
Example Usage
from swagger_tester import swagger_test
# Define the error you authorize in your API
# By default, every status_code over other than 1xx, 2xx or 3xx
# will be considered as an error.
authorize_error = {
'get': {
'/pet/': ['400', '404']
}
}
# Run the test
# An AssertionError will be raise in case of error.
swagger_test('path_to_your_swagger.yaml', authorize_error=authorize_error)
Documentation
More documentation is available at https://swagger-tester.readthedocs.org/en/latest/.
Setup
make install or pip install swagger-tester
License
swagger-tester is licensed under http://opensource.org/licenses/GPL-3.0.
History
0.1 (2016-1-29)
First release on PyPI.
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
swagger_tester-0.1.tar.gz
(28.4 kB
view hashes)
Built Distribution
Close
Hashes for swagger_tester-0.1-py2.py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 10d4ecd7f35e370e525c77521810987801778555e04fa0cac3fd1b07d202eb55 |
|
MD5 | 1fa01a0829a12fae04cbf3dfc0300c23 |
|
BLAKE2b-256 | 9599e9deb0cbbe060b1fe51653c5c09dba81c8f793629d14e483ca5d6414a1ad |