Skip to content

Commit 2191ac7

Browse files
committed
minor changes
1 parent adf5bfb commit 2191ac7

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

services/api-server/tests/mocks/run_function_parent_info.json renamed to services/api-server/tests/mocks/run_study_function_parent_info.json

File renamed without changes.

services/api-server/tests/unit/api_functions/test_api_routers_functions.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -636,6 +636,7 @@ async def test_run_function_not_allowed(
636636
(f"{_faker.uuid4()}", f"{_faker.uuid4()}", status.HTTP_200_OK),
637637
],
638638
)
639+
@pytest.mark.parametrize("capture", ["run_study_function_parent_info.json"])
639640
async def test_run_function_parent_info(
640641
client: AsyncClient,
641642
mock_handler_in_functions_rpc_interface: Callable[[str, Any], None],
@@ -651,10 +652,9 @@ async def test_run_function_parent_info(
651652
parent_project_uuid: str | None,
652653
parent_node_uuid: str | None,
653654
expected_status_code: int,
655+
capture: str,
654656
) -> None:
655657

656-
capture = "run_function_parent_info.json"
657-
658658
def _default_side_effect(
659659
request: httpx.Request,
660660
path_params: dict[str, Any],
@@ -697,6 +697,7 @@ def _default_side_effect(
697697
headers[X_SIMCORE_PARENT_PROJECT_UUID] = parent_project_uuid
698698
if parent_node_uuid:
699699
headers[X_SIMCORE_PARENT_NODE_ID] = parent_node_uuid
700+
700701
response = await client.post(
701702
f"{API_VTAG}/functions/{mock_registered_function.uid}:run",
702703
json={},

0 commit comments

Comments
 (0)