Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
"mixed_seqs/no_ext_10@@",
"mixed_seqs/no_ext.200,300@@@",
'/path/to/file4-5--4@@.exr',
'/path/to/file--4@@.exr',
'path/1-3@@.exr',
'path/1-3@@@.file',
'path/1-3#.jpg',
'2frames.1-2@@.jpg',
'8frames.1-2,5,7-8,10-11@@.jpg',
}
sub = self.RX_PATHSEP.sub
paths = [sub(sep, p) for p in paths]
expected = {sub(sep, p) for p in expected}
actual = set(str(fs) for fs in FileSequence.yield_sequences_in_list(paths))
self.assertEquals(expected, actual)
paths = list(map(_CustomPathString, paths))
actual = set(str(fs) for fs in FileSequence.yield_sequences_in_list(paths))
self.assertEquals({str(_CustomPathString(p)) for p in expected}, actual)
'path/1-3@@.exr',
'path/1-3@@@.file',
'path/1-3#.jpg',
'2frames.1-2@@.jpg',
'8frames.1-2,5,7-8,10-11@@.jpg',
}
sub = self.RX_PATHSEP.sub
paths = [sub(sep, p) for p in paths]
expected = {sub(sep, p) for p in expected}
actual = set(str(fs) for fs in FileSequence.yield_sequences_in_list(paths))
self.assertEquals(expected, actual)
paths = list(map(_CustomPathString, paths))
actual = set(str(fs) for fs in FileSequence.yield_sequences_in_list(paths))
self.assertEquals({str(_CustomPathString(p)) for p in expected}, actual)