Skip to content

Commit 7893372

Browse files
committed
@pcrespov move capture argument into test and hardcode
1 parent 3217f10 commit 7893372

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

services/api-server/tests/unit/api_functions/celery/test_functions_celery.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -553,7 +553,6 @@ def _default_side_effect(
553553
assert side_effect_checks["headers_checked"] is True
554554

555555

556-
@pytest.mark.parametrize("capture", ["run_study_function_parent_info.json"])
557556
@pytest.mark.parametrize("mocked_app_dependencies", [None])
558557
async def test_map_function(
559558
app: FastAPI,
@@ -571,9 +570,10 @@ async def test_map_function(
571570
mocked_webserver_rpc_api: dict[str, MockType],
572571
create_respx_mock_from_capture,
573572
project_tests_dir: Path,
574-
capture: str,
575573
) -> None:
576574

575+
_capture = "run_study_function_parent_info.json"
576+
577577
def _default_side_effect(
578578
request: httpx.Request,
579579
path_params: dict[str, Any],
@@ -583,7 +583,7 @@ def _default_side_effect(
583583

584584
create_respx_mock_from_capture(
585585
respx_mocks=[mocked_webserver_rest_api_base, mocked_directorv2_rest_api_base],
586-
capture_path=project_tests_dir / "mocks" / capture,
586+
capture_path=project_tests_dir / "mocks" / _capture,
587587
side_effects_callbacks=[_default_side_effect] * 50,
588588
)
589589

0 commit comments

Comments
 (0)