Skip to content

Commit

Permalink
Skip content type check
Browse files Browse the repository at this point in the history
  • Loading branch information
Krystle Salazar committed Dec 13, 2024
1 parent bcdfd90 commit 556698e
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion api/test/test_schema.py
Original file line number Diff line number Diff line change
Expand Up @@ -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/")
Expand Down Expand Up @@ -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,))

0 comments on commit 556698e

Please sign in to comment.