Skip to content

Commit 8f23dfa

Browse files
committed
Fix dlc qc test
1 parent e5eb52a commit 8f23dfa

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

ibllib/tests/qc/test_dlc_qc.py

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -33,10 +33,9 @@ def tearDownClass(cls) -> None:
3333
def test_ensure_data(self):
3434
self.qc.eid = self.eid
3535
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
36+
# If data for this session exists locally, remove a file so that the test fails as intended
37+
if self.qc.session_path.exists():
38+
self.qc.session_path.joinpath('alf/_ibl_leftCamera.dlc.pqt').unlink()
4039
with self.assertRaises(AssertionError):
4140
self.qc.run(update=False)
4241

0 commit comments

Comments
 (0)