Small schemathesis runtime fix
This commit is contained in:
parent
245cdcb93c
commit
dfb17d00eb
@ -29,7 +29,8 @@ def test_api_conformance(
|
|||||||
else:
|
else:
|
||||||
response = case.call(base_url=base_url, headers=auth_headers)
|
response = case.call(base_url=base_url, headers=auth_headers)
|
||||||
|
|
||||||
CUSTOM_CHECKS = [c for c in checks.ALL_CHECKS if c.__name__ != "ignored_auth"]
|
checks.load_all_checks()
|
||||||
|
custom_checks = [c for c in checks.CHECKS.get_all() if c.__name__ != "ignored_auth"]
|
||||||
|
|
||||||
# Validates status code, headers, and body against the OpenAPI schema:
|
# Validates status code, headers, and body against the OpenAPI schema:
|
||||||
case.validate_response(response, checks=CUSTOM_CHECKS)
|
case.validate_response(response, checks=custom_checks)
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user