1
0
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:
Mike Fährmann 2024-09-29 19:16:18 +02:00
parent a937b72034
commit 53ae5e3fd8
No known key found for this signature in database
GPG Key ID: 5680CA389D365A88

View File

@ -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):