33# pylint:disable=redefined-outer-name
44
55from pathlib import Path
6- from typing import Any , Callable , Dict
6+ from typing import Any , Callable
77
88import pytest
99from simcore_sdk .node_ports_v2 import Nodeports , exceptions , ports
2020)
2121async def test_nodeports_auto_updates (
2222 mock_db_manager : Callable ,
23- default_configuration : Dict [str , Any ],
23+ default_configuration : dict [str , Any ],
2424 user_id : int ,
2525 project_id : str ,
2626 node_uuid : str ,
@@ -75,7 +75,7 @@ async def mock_node_port_creator_cb(*args, **kwargs):
7575
7676async def test_node_ports_accessors (
7777 mock_db_manager : Callable ,
78- default_configuration : Dict [str , Any ],
78+ default_configuration : dict [str , Any ],
7979 user_id : int ,
8080 project_id : str ,
8181 node_uuid : str ,
@@ -128,7 +128,7 @@ async def mock_node_port_creator_cb(*args, **kwargs):
128128 # test batch add
129129 await node_ports .set_multiple (
130130 {
131- port .key : port .value
131+ port .key : ( port .value , None )
132132 for port in list (original_inputs .values ()) + list (original_outputs .values ())
133133 }
134134 )
@@ -151,7 +151,7 @@ async def mock_upload_file(mocker, e_tag):
151151
152152async def test_node_ports_set_file_by_keymap (
153153 mock_db_manager : Callable ,
154- default_configuration : Dict [str , Any ],
154+ default_configuration : dict [str , Any ],
155155 user_id : int ,
156156 project_id : str ,
157157 node_uuid : str ,
@@ -201,7 +201,7 @@ async def mock_node_port_creator_cb(*args, **kwargs):
201201
202202async def test_node_ports_v2_packages (
203203 mock_db_manager : Callable ,
204- default_configuration : Dict [str , Any ],
204+ default_configuration : dict [str , Any ],
205205 user_id : int ,
206206 project_id : str ,
207207 node_uuid : str ,
0 commit comments