From 53ae5e3fd8486511fe03fb5e217706e1c45b7813 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mike=20F=C3=A4hrmann?= Date: Sun, 29 Sep 2024 19:16:18 +0200 Subject: [PATCH] [tests] allow testing for alternative values --- test/test_results.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/test/test_results.py b/test/test_results.py index aa09f2fd..168faee2 100644 --- a/test/test_results.py +++ b/test/test_results.py @@ -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):