import os import requests from openapi_spec_validator import validate_spec_url def test_mazash_recognize_test(api_v1_host): endpoint = os.path.join(api_v1_host, 'mazash', 'count') response = requests.get(endpoint) assert response.status_code == 200 def test_swagger_specification(host): endpoint = os.path.join(host, 'api', 'swagger.json') validate_spec_url(endpoint) # use https://editor.swagger.io/ to fix issues