1212from pydra .utils .tests .utils import Concatenate
1313
1414
15- def check_dict_fully_serialized (dct : dict ):
15+ def check_dict_fully_unstructured (dct : dict ):
1616 """Checks if there are any Pydra objects or non list/dict containers in the dict."""
1717 stack = [dct ]
1818 while stack :
@@ -55,7 +55,7 @@ def test_python_unstructure(tmp_path):
5555
5656 dct = unstructure (Add )
5757 assert isinstance (dct , dict )
58- check_dict_fully_serialized (dct )
58+ check_dict_fully_unstructured (dct )
5959 Reloaded = structure (dct )
6060 assert get_fields (Add ) == get_fields (Reloaded )
6161
@@ -70,7 +70,7 @@ def test_shell_unstructure():
7070
7171 dct = unstructure (MyCmd )
7272 assert isinstance (dct , dict )
73- check_dict_fully_serialized (dct )
73+ check_dict_fully_unstructured (dct )
7474 Reloaded = structure (dct )
7575 assert get_fields (MyCmd ) == get_fields (Reloaded )
7676
@@ -86,7 +86,7 @@ def AWorkflow(in_file: TextFile, a_param: int) -> TextFile:
8686
8787 dct = unstructure (AWorkflow )
8888 assert isinstance (dct , dict )
89- check_dict_fully_serialized (dct )
89+ check_dict_fully_unstructured (dct )
9090 Reloaded = structure (dct )
9191 assert get_fields (AWorkflow ) == get_fields (Reloaded )
9292
@@ -123,7 +123,7 @@ def type_to_str_serializer(
123123
124124 dct = unstructure (Identity , value_serializer = type_to_str_serializer )
125125 assert isinstance (dct , dict )
126- check_dict_fully_serialized (dct )
126+ check_dict_fully_unstructured (dct )
127127 assert dct ["inputs" ] == {"a" : {"type" : "builtins.int" , "help" : "the arg" }}
128128
129129
@@ -151,5 +151,5 @@ def no_helps_filter(atr: attrs.Attribute, value: ty.Any) -> bool:
151151
152152 dct = unstructure (Identity , filter = no_helps_filter )
153153 assert isinstance (dct , dict )
154- check_dict_fully_serialized (dct )
154+ check_dict_fully_unstructured (dct )
155155 assert dct ["inputs" ] == {"a" : {"type" : int }}
0 commit comments