From 95575a4aa0ee663e56bdb229af3fab35371f2cf6 Mon Sep 17 00:00:00 2001 From: Francesco Bartoli Date: Sat, 12 Oct 2024 17:46:07 +0200 Subject: [PATCH] Remove esclusion of options method --- tests/test_openapi_contract.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/test_openapi_contract.py b/tests/test_openapi_contract.py index 139027d..81ebc6b 100644 --- a/tests/test_openapi_contract.py +++ b/tests/test_openapi_contract.py @@ -6,7 +6,7 @@ schema_bearer = schemathesis.from_pytest_fixture("protected_bearer_schema") -@schema_apikey.exclude(method="OPTIONS").parametrize() +@schema_apikey.parametrize() def test_api_with_apikey(case): """Test the API with API-KEY protection.""" if case.path_parameters: @@ -23,7 +23,7 @@ def test_api_with_apikey(case): case.validate_response(response) -@schema_bearer.exclude(method="OPTIONS").parametrize() +@schema_bearer.parametrize() def test_api_with_bearer(case, access_token): """Test the API with Authorization Bearer token protection.""" if case.path_parameters: