drf-openapi-tester:用于验证OpenAPI响应文档的Django测试实用程序

时间:2021-02-11 00:31:51
【文件属性】:
文件名称:drf-openapi-tester:用于验证OpenAPI响应文档的Django测试实用程序
文件大小:135KB
文件格式:ZIP
更新时间:2021-02-11 00:31:51
testing api django django-rest-framework swagger DRF OpenAPI测试仪 用于验证响应文档的测试实用程序 DRF OpenAPI Tester是一个简单的测试实用程序。 其目的是使开发人员可以轻松地捕获和纠正其OpenAPI架构中的文档错误。 维护好的文档很困难,并且不应该手动完成。 通过简单地测试您的API响应是否与模式定义匹配,您可以知道您的模式反映了现实。 它是如何工作的? 测试您的模式就像在常规测试结束时调用validate_response一样简单。 from openapi_tester . case_testers import is_camel_case from openapi_tester . schema_tester import SchemaTester schema_tester = SchemaTester ( case_tester = is_camel_case ) def test_res
【文件预览】:
drf-openapi-tester-master
----poetry.lock(67KB)
----.gitignore(2KB)
----.codecov.yml(279B)
----pyproject.toml(3KB)
----.pre-commit-config.yaml(1KB)
----CONTRIBUTING.md(617B)
----openapi_tester()
--------schema_converter.py(6KB)
--------__init__.py(488B)
--------schema_tester.py(23KB)
--------type_declarations.py(2KB)
--------constants.py(3KB)
--------utils.py(1KB)
--------py.typed(0B)
--------loaders.py(9KB)
--------case_testers.py(1KB)
--------exceptions.py(2KB)
----CHANGELOG.md(659B)
----LICENSE.txt(1KB)
----.github()
--------FUNDING.yml(39B)
--------workflows()
----README.md(7KB)
----tests()
--------test_case_validators.py(4KB)
--------__init__.py(0B)
--------schemas()
--------test_schema_tester.py(10KB)
--------utils.py(2KB)
--------test_test_schema_section.py(12KB)
--------test_loaders.py(2KB)
--------test_exceptions.py(1KB)
----pytest.ini(56B)
----.coveragerc(866B)
----test_project()
--------api()
--------urls.py(3KB)
--------__init__.py(0B)
--------views.py(396B)
--------wsgi.py(176B)
--------settings.py(3KB)
----manage.py(570B)
----.flake8(1KB)
----mypy.ini(393B)

网友评论