From cdb650d6b88ba54ba34ecafb8642bf618fa07062 Mon Sep 17 00:00:00 2001 From: erikzaadi Date: Thu, 31 Oct 2024 19:42:18 +0200 Subject: [PATCH] Alter fake integration (change in pytest-httpx) --- integrations/fake-integration/tests/conftest.py | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/integrations/fake-integration/tests/conftest.py b/integrations/fake-integration/tests/conftest.py index c0daae0da6..4233c6c84c 100644 --- a/integrations/fake-integration/tests/conftest.py +++ b/integrations/fake-integration/tests/conftest.py @@ -1,5 +1,16 @@ -# ruff: noqa +from typing import Any + from port_ocean.tests.helpers.fixtures import ( get_mocked_ocean_app, get_mock_ocean_resource_configs, ) +import pytest + + +def pytest_collection_modifyitems(session: Any, config: Any, items: Any) -> None: + for item in items: + # This allows us to re-requestd the same mocked endpoint several times + item.add_marker(pytest.mark.httpx_mock(can_send_already_matched_responses=True)) + + +# ruff: noqa