[tests/results] properly skip tests when missing auth

This commit is contained in:
Mike Fährmann
2025-08-08 11:54:22 +02:00
parent c3faf791b3
commit 66b2f7f53f

View File

@@ -145,7 +145,8 @@ class TestExtractorResults(unittest.TestCase):
config.set((), key, None)
if auth and not any(extr.config(key) for key in AUTH_KEYS):
return self._skipped.append((result["#url"], "no auth"))
self._skipped.append((result["#url"], "no auth"))
self.skipTest("no auth")
if "#options" in result:
for key, value in result["#options"].items():