297 Commits

Author SHA1 Message Date
Mike Fährmann
8a481a5126 [tests/results] allow using exception names for '#exception' 2026-01-19 11:19:12 +01:00
Mike Fährmann
d491ed8ed8 [tests/results] defer formatter creation 2026-01-07 19:23:54 +01:00
Mike Fährmann
1c56d961fa [tests/results] add URL as message for child extractor tests 2026-01-07 19:23:54 +01:00
Mike Fährmann
223779f456 [tests/results] add workaround for 'identity' format fields 2026-01-06 21:53:16 +01:00
Mike Fährmann
0b3258430f [tests/results] fix lists for multi-vslue checks 2026-01-06 21:53:16 +01:00
Mike Fährmann
57c2327ae3 [tests/results] implement more specific '#auth' checks 2025-12-23 22:17:33 +01:00
Mike Fährmann
d9c1d15aee [job] inline 'dispatch' loop 2025-12-05 11:48:51 +01:00
Mike Fährmann
76081b312e [tests/results] improve '{…, …, ...}' tests
fix error when including 'dict' type as possible result
2025-11-11 21:20:33 +01:00
Mike Fährmann
0aac99673d [poipiku] fix original file downloads (#8356)
now requires 'POIPIKU_LK' cookie
2025-10-06 15:33:11 +02:00
Mike Fährmann
dce8ff8108 [tests/results] support 'hash:…' tests 2025-10-02 20:09:48 +02:00
Mike Fährmann
f3596d0bde [tests/results] support 'iso:uuid' tests 2025-08-30 23:01:54 +02:00
Mike Fährmann
ca3331d19f [tests/results] support 'iso:…' tests 2025-08-14 11:53:00 +02:00
Mike Fährmann
b9429de774 [tests] use f-strings (##7671) 2025-08-14 10:22:42 +02:00
Mike Fährmann
a87c447af2 [tests/results] improve error for undefined list items 2025-08-14 09:03:51 +02:00
Mike Fährmann
06f37e1d8c [tests/results] ensure 're:' input is a string 2025-08-12 22:11:10 +02:00
Mike Fährmann
294557fc57 [tests/results] support testing 'post' metadata 2025-08-11 08:23:18 +02:00
Mike Fährmann
66b2f7f53f [tests/results] properly skip tests when missing auth 2025-08-08 11:56:44 +02:00
Mike Fährmann
c3faf791b3 [tests/results] support '#log' checks when expecting an exception 2025-08-08 11:56:44 +02:00
Mike Fährmann
328932d422 [tests/results] extend "len:…" to support generators
or general iterables without __len__
2025-08-01 20:42:20 +02:00
Mike Fährmann
28205f47b0 [tests/results] fix '#log' checks for URLs raising exceptions 2025-07-24 09:18:58 +02:00
Mike Fährmann
c73d902e13 [tests/results] include '#comment' in test output 2025-06-17 22:32:08 +02:00
Mike Fährmann
f7b1b6b5c8 [tests] replace 'print' with 'sys.stdout.write' 2025-06-17 22:05:41 +02:00
Mike Fährmann
9afac3c51d [tests:results] rename '#urls' to '#results' 2025-06-13 13:00:50 +02:00
Mike Fährmann
e08ec7e083 update copyright notices 2025-06-13 00:03:41 +02:00
Mike Fährmann
847fce6ef1 [tests:results] implement testing for logging messages 2025-06-12 08:22:28 +02:00
Mike Fährmann
b95b71f63f [tests:results] implement general tests for list items 2025-06-07 10:36:43 +02:00
Mike Fährmann
fc01d85823 [tests:results] split '_test_kwdict()' 2025-06-07 10:16:47 +02:00
Mike Fährmann
456e93d489 [tests:results] enable 'extension' and ':?' in format tests 2025-05-26 13:50:42 +02:00
Mike Fährmann
a6803afd36 [tests] implement testing for non-existence of a key 2025-05-02 21:10:05 +02:00
Mike Fährmann
f6330bf16d [tests] implement explicit type checks for 'len:'
for example 'len:dict:3' to check for a dict with 3 items
2025-04-28 16:26:33 +02:00
Mike Fährmann
a6b8569037 [tests] implement expected failures 2025-03-18 21:48:17 +01:00
Mike Fährmann
5fa5a45f03 [tests] improve error message of multi type/value tests
improvement of 42070240ae
2025-03-14 18:59:57 +01:00
Mike Fährmann
d40f8a82be [tests] add support for skipping an extractor result test 2025-03-12 16:41:46 +01:00
Mike Fährmann
42070240ae [tests] allow testing for types + values 2025-01-12 20:55:37 +01:00
Mike Fährmann
1df09292b5 consistent __exit__() argument names 2024-10-11 16:43:28 +02:00
Mike Fährmann
29e46f6875 [tests] use extended format strings for archive ID tests 2024-10-10 19:32:09 +02:00
Mike Fährmann
53ae5e3fd8 [tests] allow testing for alternative values 2024-09-29 19:16:18 +02:00
Mike Fährmann
933dc568c3 [tests] ensure 'extractor.find' and 'from_url' extractors are identical 2024-09-22 10:58:59 +02:00
Mike Fährmann
14c57f771c [tests] make "#category" result entries optional
use categories of the given "#class"
when "#category" is not specified
2024-09-21 21:45:45 +02:00
Mike Fährmann
42388dc819 [tests] fix 'pattern' not being compiled before running a test
fixes regression introduced in 3fa74ca4
2024-08-01 12:35:01 +02:00
Mike Fährmann
3eba1f7c29 [tests] load results from ${GDL_TEST_RESULTS} (#5262) 2024-07-22 18:35:50 +02:00
Mike Fährmann
3fa74ca4d7 [tests] enable test results for external extractors (#5262)
https://github.com/mikf/gallery-dl/issues/5262#issuecomment-2231649983
2024-07-17 22:29:09 +02:00
Mike Fährmann
21831eba1e [tests] completely ignore '#auth' for 'only_matching' tests 2024-07-11 00:20:10 +02:00
Mike Fährmann
ce228ee163 [photobucket] remove module
had been broken for years and the new site is payed access only
2024-06-02 01:40:31 +02:00
Mike Fährmann
8ed70b3256 [tests] mark tests with missing auth as 'only_matching'
… instead of skipping them completely
2024-05-01 16:00:07 +02:00
Mike Fährmann
068ccfe0b3 [tests] allow filtering extractor result tests by URL or comment
python test_results.py twitter:+/i/web/
python test_results.py twitter:~twitpic
2024-04-19 23:02:55 +02:00
Mike Fährmann
718c870430 [tests] show full path for nested values
'user.name' instead of just 'name' when testing for
"user": { … , "name": "…", … }
2024-03-18 17:36:16 +01:00
Mike Fährmann
8f27f43d4d [tests] implement explicitly disabling auth 2024-02-13 00:08:27 +01:00
Mike Fährmann
0d367ce1b9 [tests] update extractor results 2024-01-20 18:02:36 +01:00
Mike Fährmann
69726fc82c [tests] skip tests requiring auth when non is provided 2024-01-14 22:47:16 +01:00