From f6836f8c1115afedc27d1078dab4941367b66bba Mon Sep 17 00:00:00 2001 From: Alessandra Romero Date: Fri, 14 Jun 2024 15:19:45 -0400 Subject: [PATCH] Add custom marker for checking validation --- tests/functional/test_h2_required.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/tests/functional/test_h2_required.py b/tests/functional/test_h2_required.py index 563fc81e8f..6362a95c18 100644 --- a/tests/functional/test_h2_required.py +++ b/tests/functional/test_h2_required.py @@ -50,6 +50,7 @@ def _all_test_cases(): H2_SERVICES, H2_OPERATIONS = _all_test_cases() +@pytest.mark.validates_models @pytest.mark.parametrize("h2_service", H2_SERVICES) def test_all_uses_of_h2_are_known(h2_service): # Validates that a service that requires HTTP 2 for all operations is known @@ -57,6 +58,7 @@ def test_all_uses_of_h2_are_known(h2_service): assert _KNOWN_SERVICES.get(h2_service) is _H2_REQUIRED, message +@pytest.mark.validates_models @pytest.mark.parametrize("h2_service, operation", H2_OPERATIONS) def test_all_h2_operations_are_known(h2_service, operation): # Validates that an operation that requires HTTP 2 is known