mirror of
https://github.com/mikf/gallery-dl.git
synced 2024-11-22 02:32:33 +01:00
[tests] allow testing for alternative values
This commit is contained in:
parent
a937b72034
commit
53ae5e3fd8
@ -235,6 +235,8 @@ class TestExtractorResults(unittest.TestCase):
|
||||
self.assertIsInstance(value, test, msg=path)
|
||||
elif isinstance(test, range):
|
||||
self.assertRange(value, test, msg=path)
|
||||
elif isinstance(test, set):
|
||||
self.assertIn(value, test, msg=path)
|
||||
elif isinstance(test, list):
|
||||
subtest = False
|
||||
for idx, item in enumerate(test):
|
||||
|
Loading…
Reference in New Issue
Block a user