Skip to content

Commit 740886b

Browse files
fix
1 parent 23f242c commit 740886b

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

services/director-v2/tests/unit/with_dbs/conftest.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,7 @@ def creator(
9292
"inputs": (
9393
{
9494
key: (
95-
json.loads(value.json(by_alias=True, exclude_unset=True))
95+
value.model_dump(by_alias=True, exclude_unset=True)
9696
if isinstance(value, BaseModel)
9797
else value
9898
)
@@ -113,9 +113,9 @@ def creator(
113113
if node_data.outputs
114114
else {}
115115
),
116-
"image": Image(name=node_data.key, tag=node_data.version).dict( # type: ignore
116+
"image": Image(name=node_data.key, tag=node_data.version).model_dump(
117117
by_alias=True, exclude_unset=True
118-
), # type: ignore
118+
),
119119
"node_class": to_node_class(node_data.key),
120120
"internal_id": internal_id + 1,
121121
"submit": datetime.datetime.now(tz=datetime.UTC),

services/director-v2/tests/unit/with_dbs/test_api_route_dynamic_services.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -191,7 +191,7 @@ async def mock_retrieve_features(
191191
] = scheduler_data_from_http_request
192192

193193
respx_mock.post(
194-
f"{scheduler_data_from_http_request.endpoint}/v1/containers/ports/inputs:pull",
194+
f"{scheduler_data_from_http_request.endpoint}v1/containers/ports/inputs:pull",
195195
name="service_pull_input_ports",
196196
).respond(json="mocked_task_id", status_code=status.HTTP_202_ACCEPTED)
197197

0 commit comments

Comments
 (0)