@@ -630,7 +630,7 @@ def test_check_protected_parameters(delete_operation) -> None:
630630 ("background_parameters" , ["source" ]),
631631 ("resolution_parameters" , ["source" ]),
632632 ("parameters" , ["roughness" ]),
633- ("data" , ["data" , "source" , "source" ]),
633+ ("data" , ["data" , "source" ]),
634634 ("custom_files" , ["source" , "source" ]),
635635 ("backgrounds" , ["background" ]),
636636 ("bulk_in" , ["bulk_in" ]),
@@ -645,7 +645,6 @@ def test_rename_models(test_project, model: str, fields: list[str]) -> None:
645645 """
646646 if model == "data" :
647647 test_project .backgrounds [0 ] = RATapi .models .Background (type = "data" , source = "Simulation" )
648- test_project .resolutions [0 ] = RATapi .models .Resolution (type = "data" , source = "Simulation" )
649648 if model == "custom_files" :
650649 test_project .backgrounds [0 ] = RATapi .models .Background (type = "function" , source = "Test Custom File" )
651650 # workaround until function resolutions are added
@@ -753,7 +752,6 @@ def test_allowed_absorption_layers(field: str) -> None:
753752 "resolution_type, expected_field" ,
754753 [
755754 [TypeOptions .Constant , "resolution_parameters" ],
756- [TypeOptions .Data , "data" ],
757755 # uncomment when function resolutions are added!
758756 # [TypeOptions.Function, "custom_files"],
759757 ],
@@ -1168,6 +1166,7 @@ def test_write_script_wrong_extension(test_project, extension: str) -> None:
11681166 ("contrasts" , "" , "resolution" ),
11691167 ],
11701168)
1169+ @pytest .mark .filterwarnings ("ignore:The following values are not recognised by this*:UserWarning" )
11711170def test_wrap_set (test_project , class_list : str , model_type : str , field : str ) -> None :
11721171 """If we set the field values of a model in a ClassList as undefined values, we should raise a ValidationError."""
11731172 test_attribute = getattr (test_project , class_list )
@@ -1246,6 +1245,7 @@ def test_wrap_del(test_project, class_list: str, parameter: str, field: str) ->
12461245 ("contrasts" , "" , "resolution" , {}),
12471246 ],
12481247)
1248+ @pytest .mark .filterwarnings ("ignore:The following values are not recognised by this*:UserWarning" )
12491249def test_wrap_iadd (test_project , class_list : str , model_type : str , field : str , model_params : dict ) -> None :
12501250 """If we add a model containing undefined values to a ClassList, we should raise a ValidationError."""
12511251 test_attribute = getattr (test_project , class_list )
@@ -1292,6 +1292,7 @@ def test_wrap_iadd(test_project, class_list: str, model_type: str, field: str, m
12921292 ("contrasts" , "" , "resolution" , {}),
12931293 ],
12941294)
1295+ @pytest .mark .filterwarnings ("ignore:The following values are not recognised by this*:UserWarning" )
12951296def test_wrap_append (test_project , class_list : str , model_type : str , field : str , model_params : dict ) -> None :
12961297 """If we append a model containing undefined values to a ClassList, we should raise a ValidationError."""
12971298 test_attribute = getattr (test_project , class_list )
@@ -1339,6 +1340,7 @@ def test_wrap_append(test_project, class_list: str, model_type: str, field: str,
13391340 ("contrasts" , "" , "resolution" , {}),
13401341 ],
13411342)
1343+ @pytest .mark .filterwarnings ("ignore:The following values are not recognised by this*:UserWarning" )
13421344def test_wrap_insert (test_project , class_list : str , model_type : str , field : str , model_params : dict ) -> None :
13431345 """If we insert a model containing undefined values into a ClassList, we should raise a ValidationError."""
13441346 test_attribute = getattr (test_project , class_list )
@@ -1382,6 +1384,7 @@ def test_wrap_insert(test_project, class_list: str, model_type: str, field: str,
13821384 ("contrasts" , "resolution" ),
13831385 ],
13841386)
1387+ @pytest .mark .filterwarnings ("ignore:The following values are not recognised by this*:UserWarning" )
13851388def test_wrap_insert_type_error (test_project , class_list : str , field : str ) -> None :
13861389 """If we raise a TypeError using the wrapped insert routine, we should re-raise the error."""
13871390 test_attribute = getattr (test_project , class_list )
@@ -1518,6 +1521,7 @@ def test_wrap_clear(test_project, class_list: str, parameter: str, field: str) -
15181521 ("contrasts" , "" , "resolution" , {}),
15191522 ],
15201523)
1524+ @pytest .mark .filterwarnings ("ignore:The following values are not recognised by this*:UserWarning" )
15211525def test_wrap_extend (test_project , class_list : str , model_type : str , field : str , model_params : dict ) -> None :
15221526 """If we extend a ClassList with model containing undefined values, we should raise a ValidationError."""
15231527 test_attribute = getattr (test_project , class_list )
0 commit comments