diff --git a/api-openbis-python3-pybis/src/python/tests/systemtest/testcase.py b/api-openbis-python3-pybis/src/python/tests/systemtest/testcase.py index a84d6a55bcce98567da0c408105d847fb6182603..2caccf76d592d5b2aef67e0341145a927bd3e390 100644 --- a/api-openbis-python3-pybis/src/python/tests/systemtest/testcase.py +++ b/api-openbis-python3-pybis/src/python/tests/systemtest/testcase.py @@ -272,6 +272,7 @@ class TestCase(object): consoleProperties['DSS_ROOT_DIR'] = "%s/data" % installPath for technology in technologies: consoleProperties[technology.upper()] = True + print(f"CONSOLE_PROPERTIES:{consoleProperties}") util.writeProperties(consolePropertiesFile, consoleProperties) util.executeCommand("%s/%s/run-console.sh" % (self.playgroundFolder, installerFileName), "Couldn't install openBIS", consoleInput='admin\nadmin') diff --git a/api-openbis-python3-pybis/src/python/tests/test_dataset.py b/api-openbis-python3-pybis/src/python/tests/test_dataset.py index baefba6ae121fcc89a9ab4fac17d7cc7b59d5846..1e7866f26018f13ff4b8aed4d03e1e4b9f992503 100644 --- a/api-openbis-python3-pybis/src/python/tests/test_dataset.py +++ b/api-openbis-python3-pybis/src/python/tests/test_dataset.py @@ -26,9 +26,20 @@ from pybis.things import Things def test_get_datasets(space): # test paging o = space.openbis - current_datasets = o.get_datasets(start_with=1, count=1) - assert current_datasets is not None - assert len(current_datasets) == 1 + + dataset = o.new_dataset( + type="RAW_DATA", + experiment="/DEFAULT/DEFAULT/DEFAULT", + props={"$name": "some good name"}, + ) + dataset.save() + + try: + current_datasets = o.get_datasets(start_with=1, count=1) + assert current_datasets is not None + assert len(current_datasets) == 1 + finally: + dataset.delete() def test_create_delete_dataset(space):