diff --git a/tests/integration/local/start_api/test_start_api.py b/tests/integration/local/start_api/test_start_api.py index f0d75e5dc5..b95f1c63b9 100644 --- a/tests/integration/local/start_api/test_start_api.py +++ b/tests/integration/local/start_api/test_start_api.py @@ -1549,9 +1549,9 @@ def assert_cors(self, response): self.assertEqual(response.headers.get("Access-Control-Allow-Credentials"), "true") self.assertEqual(response.headers.get("Access-Control-Max-Age"), "510") + @parameterized.expand(["https://abc", None]) @pytest.mark.flaky(reruns=3) @pytest.mark.timeout(timeout=600, method="thread") - @parameterized.expand(["https://abc", None]) def test_cors_swagger_options(self, origin): """ This tests that the Cors headers are added to OPTIONS responses @@ -1559,9 +1559,9 @@ def test_cors_swagger_options(self, origin): response = requests.options(self.url + "/echobase64eventbody", **_create_request_params(origin)) self.assert_cors(response) + @parameterized.expand(["https://abc", None]) @pytest.mark.flaky(reruns=3) @pytest.mark.timeout(timeout=600, method="thread") - @parameterized.expand(["https://abc", None]) def test_cors_swagger_get(self, origin): """ This tests that the Cors headers are added to _other_ method responses @@ -1685,9 +1685,9 @@ class TestServiceCorsGlobalRequests(StartApiIntegBaseClass): def setUp(self): self.url = "http://127.0.0.1:{}".format(self.port) + @parameterized.expand(["https://abc", None]) @pytest.mark.flaky(reruns=3) @pytest.mark.timeout(timeout=600, method="thread") - @parameterized.expand(["https://abc", None]) def test_cors_global(self, origin): """ This tests that the Cors headers are added to OPTIONS response when the global property is set