We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e5eb52a commit 8f23dfaCopy full SHA for 8f23dfa
ibllib/tests/qc/test_dlc_qc.py
@@ -33,10 +33,9 @@ def tearDownClass(cls) -> None:
33
def test_ensure_data(self):
34
self.qc.eid = self.eid
35
self.qc.download_data = False
36
- # If data for this session exists locally, overwrite the methods so it is not found
37
- if self.one.eid2path(self.eid).exists():
38
- self.qc.one.to_eid = lambda _: self.eid
39
- self.qc.one._download_datasets = lambda _: None
+ # If data for this session exists locally, remove a file so that the test fails as intended
+ if self.qc.session_path.exists():
+ self.qc.session_path.joinpath('alf/_ibl_leftCamera.dlc.pqt').unlink()
40
with self.assertRaises(AssertionError):
41
self.qc.run(update=False)
42
0 commit comments