Small schemathesis runtime fix

This commit is contained in:
Daniel Schick 2026-01-12 09:54:01 +01:00
parent 245cdcb93c
commit dfb17d00eb

View File

@ -29,7 +29,8 @@ def test_api_conformance(
else:
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:
case.validate_response(response, checks=CUSTOM_CHECKS)
case.validate_response(response, checks=custom_checks)