1
0
mirror of https://github.com/mikf/gallery-dl.git synced 2024-11-22 18:53:21 +01:00
gallery-dl/test/results/generic.py

69 lines
2.0 KiB
Python
Raw Normal View History

2023-09-10 14:45:01 +02:00
# -*- coding: utf-8 -*-
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License version 2 as
# published by the Free Software Foundation.
from gallery_dl.extractor import generic
__tests__ = (
{
2023-09-11 17:20:06 +02:00
"#url" : "generic:https://www.nongnu.org/lzip/",
"#category": ("", "generic", "www.nongnu.org"),
2023-09-10 14:45:01 +02:00
"#class" : generic.GenericExtractor,
"#count" : 1,
"#sha1_content": "40be5c77773d3e91db6e1c5df720ee30afb62368",
"description": "Lossless data compressor",
"imageurl" : "https://www.nongnu.org/lzip/lzip.png",
"keywords" : "lzip, clzip, plzip, lzlib, LZMA, bzip2, gzip, data compression, GNU, free software",
"pageurl" : "https://www.nongnu.org/lzip/",
},
{
2023-09-11 17:20:06 +02:00
"#url" : "generic:https://räksmörgås.josefsson.org/",
"#category": ("", "generic", "räksmörgås.josefsson.org"),
2023-09-10 14:45:01 +02:00
"#class" : generic.GenericExtractor,
"#pattern" : "^https://räksmörgås.josefsson.org/",
"#count" : 2,
},
{
2023-09-11 17:20:06 +02:00
"#url" : "generic:https://en.wikipedia.org/Main_Page",
"#category": ("", "generic", "en.wikipedia.org"),
2023-09-10 14:45:01 +02:00
"#class" : generic.GenericExtractor,
},
{
2023-09-11 17:20:06 +02:00
"#url" : "generic:https://example.org/path/to/file?que=1?&ry=2/#fragment",
"#category": ("", "generic", "example.org"),
2023-09-10 14:45:01 +02:00
"#class" : generic.GenericExtractor,
},
{
2023-09-11 17:20:06 +02:00
"#url" : "generic:https://example.org/%27%3C%23/%23%3E%27.htm?key=%3C%26%3E",
"#category": ("", "generic", "example.org"),
2023-09-10 14:45:01 +02:00
"#class" : generic.GenericExtractor,
},
{
2023-09-11 17:20:06 +02:00
"#url" : "generic:https://en.wikipedia.org/Main_Page",
"#category": ("", "generic", "en.wikipedia.org"),
2023-09-10 14:45:01 +02:00
"#class" : generic.GenericExtractor,
},
{
2023-09-11 17:20:06 +02:00
"#url" : "generic:https://example.org/path/to/file?que=1?&ry=2/#fragment",
"#category": ("", "generic", "example.org"),
2023-09-10 14:45:01 +02:00
"#class" : generic.GenericExtractor,
},
{
2023-09-11 17:20:06 +02:00
"#url" : "generic:https://example.org/%27%3C%23/%23%3E%27.htm?key=%3C%26%3E",
"#category": ("", "generic", "example.org"),
2023-09-10 14:45:01 +02:00
"#class" : generic.GenericExtractor,
},
)