diff --git a/tests/widgets/project/test_models.py b/tests/widgets/project/test_models.py index 6eacbae..9fdc455 100644 --- a/tests/widgets/project/test_models.py +++ b/tests/widgets/project/test_models.py @@ -282,6 +282,7 @@ def test_layer_model_append(): init_list = RATapi.ClassList() init_list._class_handle = RATapi.models.Layer model = LayersModel(init_list, parent) + model.parent = MagicMock() model.append_item() @@ -305,6 +306,7 @@ def test_layer_model_set_absorption(): ) model = LayersModel(init_list, parent) + model.parent = MagicMock() model.set_absorption(True) for expected, actual in zip(init_list, model.classlist):