File tree Expand file tree Collapse file tree 2 files changed +4
-4
lines changed
services/director-v2/tests/unit/with_dbs Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Original file line number Diff line number Diff 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 ),
Original file line number Diff line number Diff 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
You can’t perform that action at this time.
0 commit comments