aboutsummaryrefslogtreecommitdiffstats
path: root/test
diff options
context:
space:
mode:
authorLibravatarUnit 193 <unit193@unit193.net>2020-10-25 17:59:22 -0400
committerLibravatarUnit 193 <unit193@unit193.net>2020-10-25 17:59:22 -0400
commit5dc7d6f5902ddaee5223d041d5c10060f0c72430 (patch)
tree6ddd103a86ea7bbb0d695f5fdfa55e43f04756ca /test
parente0c914765184ebbf99cffdecfe8cdbe10f42486e (diff)
New upstream version 1.15.2.upstream/1.15.2
Diffstat (limited to 'test')
-rw-r--r--test/test_results.py7
-rw-r--r--test/test_util.py2
2 files changed, 7 insertions, 2 deletions
diff --git a/test/test_results.py b/test/test_results.py
index a594032..d54017e 100644
--- a/test/test_results.py
+++ b/test/test_results.py
@@ -25,13 +25,14 @@ TRAVIS_SKIP = {
"exhentai", "mangafox", "dynastyscans", "nijie", "instagram", "ngomik",
"archivedmoe", "archiveofsins", "thebarchive", "fireden", "4plebs",
"sankaku", "idolcomplex", "mangahere", "mangadex", "sankakucomplex",
- "warosu", "fuskator", "patreon", "komikcast",
+ "warosu", "fuskator", "patreon", "komikcast", "twitter",
}
# temporary issues, etc.
BROKEN = {
+ "imgbox",
"imagevenue",
- "ngomik",
+ "mangapanda",
"photobucket",
}
@@ -296,6 +297,7 @@ class TestFormatter(util.Formatter):
def setup_test_config():
name = "gallerydl"
email = "gallerydl@openaliasbox.org"
+ email2 = "gallerydl@protonmail.com"
config.clear()
config.set(("cache",), "file", None)
@@ -307,6 +309,7 @@ def setup_test_config():
config.set(("extractor", "nijie") , "username", email)
config.set(("extractor", "seiga") , "username", email)
+ config.set(("extractor", "pinterest") , "username", email2)
config.set(("extractor", "newgrounds"), "username", "d1618111")
config.set(("extractor", "newgrounds"), "password", "d1618111")
diff --git a/test/test_util.py b/test/test_util.py
index 1515814..08ecd64 100644
--- a/test/test_util.py
+++ b/test/test_util.py
@@ -265,6 +265,7 @@ class TestFormatter(unittest.TestCase):
"d": {"a": "foo", "b": 0, "c": None},
"l": ["a", "b", "c"],
"n": None,
+ "s": " \n\r\tSPACE ",
"u": "%27%3C%20/%20%3E%27",
"name": "Name",
"title1": "Title",
@@ -278,6 +279,7 @@ class TestFormatter(unittest.TestCase):
self._run_test("{a!u}", "HELLO WORLD")
self._run_test("{a!c}", "Hello world")
self._run_test("{a!C}", "Hello World")
+ self._run_test("{s!t}", "SPACE")
self._run_test("{a!U}", self.kwdict["a"])
self._run_test("{u!U}", "'< / >'")
self._run_test("{a!s}", self.kwdict["a"])