1
0
mirror of https://github.com/mikf/gallery-dl.git synced 2024-11-22 02:32:33 +01:00

[tests] completely ignore '#auth' for 'only_matching' tests

This commit is contained in:
Mike Fährmann 2024-07-10 16:03:05 +02:00
parent 16e276fca4
commit 21831eba1e
No known key found for this signature in database
GPG Key ID: 5680CA389D365A88

View File

@ -86,9 +86,9 @@ class TestExtractorResults(unittest.TestCase):
def _run_test(self, result):
result.pop("#comment", None)
auth = result.pop("#auth", None)
only_matching = (len(result) <= 3)
auth = result.get("#auth")
if auth is None:
auth = (result["#category"][1] in AUTH)
elif not auth: