From 556698ec14bf5638737a7c7e996d65c455aabbe0 Mon Sep 17 00:00:00 2001 From: Krystle Salazar Date: Fri, 13 Dec 2024 17:59:05 -0400 Subject: [PATCH] Skip content type check --- api/test/test_schema.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/api/test/test_schema.py b/api/test/test_schema.py index 4951a57f5d4..1803f79ee74 100644 --- a/api/test/test_schema.py +++ b/api/test/test_schema.py @@ -3,6 +3,7 @@ from django.conf import settings import schemathesis +from schemathesis.checks import content_type_conformance schema = schemathesis.from_uri(f"{settings.CANONICAL_ORIGIN}/v1/schema/") @@ -30,4 +31,5 @@ def test_schema(case: schemathesis.Case): # from schemathesis's implementation of `parameterize`. return - case.call_and_validate() + # Not ideal to exclude the content_type_conformance check... + case.call_and_validate(excluded_checks=(content_type_conformance,))