Skip to content

Commit 30607a8

Browse files
committed
allow for None collection
1 parent e66e616 commit 30607a8

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

ibllib/pipes/tasks.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -389,7 +389,8 @@ def assert_expected(self, expected_files, silent=False):
389389
actual_files = list(Path(self.session_path).rglob(str(Path(*filter(None, reversed(expected_file[:2]))))))
390390
# Account for revisions
391391
if len(actual_files) == 0:
392-
expected_revision = (expected_file[0], expected_file[1] + '/#*', expected_file[2])
392+
collection = expected_file[1] + '/#*' if expected_file[1] != '' else expected_file[1] + '#*'
393+
expected_revision = (expected_file[0], collection, expected_file[2])
393394
actual_files = list(
394395
Path(self.session_path).rglob(str(Path(*filter(None, reversed(expected_revision[:2]))))))
395396

0 commit comments

Comments
 (0)