diff --git a/obis/src/python/obis/dm/data_mgmt_test.py b/obis/src/python/obis/dm/data_mgmt_test.py index 5f0e58862e5bb04e1616e9f2e49cdbf58613d00e..b873c0ff3e7bb7ef77c8a80e1480141e73ae0714 100644 --- a/obis/src/python/obis/dm/data_mgmt_test.py +++ b/obis/src/python/obis/dm/data_mgmt_test.py @@ -36,6 +36,7 @@ def shared_dm(): 'allow_http_but_do_not_use_this_in_production_and_only_within_safe_networks': True } dm = data_mgmt.DataMgmt(openbis_config=openbis_config) + dm.debug = True return dm @@ -269,6 +270,10 @@ def prepare_new_data_set_expectations(dm, properties={}): dm.openbis.new_git_data_set = MagicMock(return_value=data_set) dm.openbis.get_dataset = MagicMock(return_value=data_set) + sample = MagicMock() + sample.permId = "123-1" + dm.openbis.get_sample = MagicMock(return_value=sample) + def check_new_data_set_expectations(dm, tmp_dir_path, commit_id, repository_id, external_dms, data_set_id, parent_id, properties,