diff --git a/test_iblrig/test_scripts.py b/test_iblrig/test_scripts.py index 7f3a38e86..2ff5a9646 100644 --- a/test_iblrig/test_scripts.py +++ b/test_iblrig/test_scripts.py @@ -4,20 +4,15 @@ from one.api import ONE +from scripts.ibllib.purge_rig_data import purge_local_data, session_name from test_iblrig import OPENALYX_PARAMETERS -try: # If an AssertionError is thrown on import, ONE-api is less than v1.13.0 - from scripts.ibllib.purge_rig_data import purge_local_data, session_name -except AssertionError: - SKIP_PURGE_TEST = True - class TestScripts(unittest.TestCase): def setUp(self) -> None: self.tempdir = tempfile.TemporaryDirectory() self.addCleanup(self.tempdir.cleanup) - @unittest.skipIf(SKIP_PURGE_TEST, "Skipping test_purge_rig_data, ONE-api is lower than v1.13.0") def test_purge_rig_data(self): # Setup out test root = Path(self.tempdir.name)