diff --git a/test/results/2chen.py b/test/results/2chen.py index 589053fa..132f75d7 100644 --- a/test/results/2chen.py +++ b/test/results/2chen.py @@ -6,7 +6,6 @@ gallery_dl = __import__("gallery_dl.extractor.2chen") _2chen = getattr(gallery_dl.extractor, "2chen") -import datetime __tests__ = ( @@ -18,7 +17,7 @@ __tests__ = ( "#count" : ">= 179", "board" : "tv", - "date" : datetime.datetime, + "date" : "type:datetime", "hash" : r"re:[0-9a-f]{40}", "name" : "Anonymous", "no" : r"re:\d+", diff --git a/test/results/4archive.py b/test/results/4archive.py index cebec6fc..f907577f 100644 --- a/test/results/4archive.py +++ b/test/results/4archive.py @@ -6,7 +6,6 @@ gallery_dl = __import__("gallery_dl.extractor.4archive") _4archive = getattr(gallery_dl.extractor, "4archive") -import datetime __tests__ = ( @@ -19,7 +18,7 @@ __tests__ = ( "board" : "u", "com" : str, - "date" : datetime.datetime, + "date" : "type:datetime", "name" : "Anonymous", "no" : range(2397221, 2418158), "thread": 2397221, diff --git a/test/results/deviantart.py b/test/results/deviantart.py index c3a6c537..ee911e99 100644 --- a/test/results/deviantart.py +++ b/test/results/deviantart.py @@ -5,7 +5,6 @@ # published by the Free Software Foundation. from gallery_dl.extractor import deviantart -import datetime from gallery_dl import exception @@ -60,7 +59,7 @@ __tests__ = ( "transparency": bool, "width" : int, }, - "date" : datetime.datetime, + "date" : "type:datetime", "deviationid" : str, "?download_filesize": int, "extension" : str, diff --git a/test/results/facebook.py b/test/results/facebook.py index 7eda027d..64f49690 100644 --- a/test/results/facebook.py +++ b/test/results/facebook.py @@ -6,7 +6,6 @@ from gallery_dl.extractor import facebook from gallery_dl import exception -import datetime __tests__ = ( @@ -191,7 +190,7 @@ __tests__ = ( "#count" : 1, "caption" : "They were on a break... #FriendsReunion #MoreTogether", - "date" : datetime.datetime(2021, 5, 27, 21, 55, 19), + "date" : "dt:2021-05-27 21:55:19", "filename" : "191053255_10160743390471729_9001965649022744000_n", "extension": "jpg", "id" : "10160743390456729", @@ -212,7 +211,7 @@ __tests__ = ( "#count" : 1, "caption" : "", - "date" : datetime.datetime(2014, 5, 3, 0, 44, 47), + "date" : "dt:2014-05-03 00:44:47", "filename" : str, "extension": "png", "id" : "10152716011076729", @@ -272,7 +271,7 @@ __tests__ = ( "#class" : facebook.FacebookVideoExtractor, "#count" : 1, - "date" : datetime.datetime(2024, 4, 19, 17, 25, 48), + "date" : "dt:2024-04-19 17:25:48", "filename" : str, "id" : "1165557851291824", "url" : str, diff --git a/test/results/hentaifoundry.py b/test/results/hentaifoundry.py index 6da50035..65aaafcf 100644 --- a/test/results/hentaifoundry.py +++ b/test/results/hentaifoundry.py @@ -5,7 +5,6 @@ # published by the Free Software Foundation. from gallery_dl.extractor import hentaifoundry -import datetime __tests__ = ( @@ -190,7 +189,7 @@ Sorry for the bad quality, I made it on after effect because Flash works like sh "author" : "SnowWolf35", "chapters" : int, "comments" : int, - "date" : datetime.datetime, + "date" : "type:datetime", "description": str, "index" : int, "rating" : int, diff --git a/test/results/horne.py b/test/results/horne.py index 6d2a0b49..418e656b 100644 --- a/test/results/horne.py +++ b/test/results/horne.py @@ -5,7 +5,6 @@ # published by the Free Software Foundation. from gallery_dl.extractor import nijie -import datetime __tests__ = ( @@ -29,7 +28,7 @@ __tests__ = ( "artist_id" : 58000, "artist_name": "のえるわ", - "date" : datetime.datetime, + "date" : "type:datetime", "description": str, "image_id" : int, "num" : int, diff --git a/test/results/imgur.py b/test/results/imgur.py index bd99245f..8d6cf3ae 100644 --- a/test/results/imgur.py +++ b/test/results/imgur.py @@ -6,7 +6,6 @@ from gallery_dl.extractor import imgur from gallery_dl import exception -import datetime __tests__ = ( @@ -215,7 +214,7 @@ __tests__ = ( }, "account_id" : 0, "count" : 19, - "date" : datetime.datetime, + "date" : "type:datetime", "description": "", "ext" : "jpg", "has_sound" : False, diff --git a/test/results/inkbunny.py b/test/results/inkbunny.py index 4e05da7c..78885f59 100644 --- a/test/results/inkbunny.py +++ b/test/results/inkbunny.py @@ -5,7 +5,6 @@ # published by the Free Software Foundation. from gallery_dl.extractor import inkbunny -import datetime __tests__ = ( @@ -16,7 +15,7 @@ __tests__ = ( "#pattern" : r"https://[\w.]+\.metapix\.net/files/full/\d+/\d+_soina_.+", "#range" : "20-50", - "date" : datetime.datetime, + "date" : "type:datetime", "deleted" : bool, "file_id" : r"re:[0-9]+", "filename" : r"re:[0-9]+_soina_\w+", diff --git a/test/results/luscious.py b/test/results/luscious.py index 597b5699..32626485 100644 --- a/test/results/luscious.py +++ b/test/results/luscious.py @@ -5,7 +5,6 @@ # published by the Free Software Foundation. from gallery_dl.extractor import luscious -import datetime from gallery_dl import exception @@ -49,7 +48,7 @@ __tests__ = ( "aspect_ratio" : r"re:\d+:\d+", "category" : "luscious", "created" : int, - "date" : datetime.datetime, + "date" : "type:datetime", "height" : int, "id" : int, "is_animated" : False, diff --git a/test/results/mangadex.py b/test/results/mangadex.py index 5309db13..5fdd7150 100644 --- a/test/results/mangadex.py +++ b/test/results/mangadex.py @@ -6,7 +6,6 @@ from gallery_dl.extractor import mangadex from gallery_dl import exception -import datetime __tests__ = ( @@ -132,7 +131,7 @@ __tests__ = ( "chapter" : 0, "chapter_minor": "", "chapter_id" : str, - "date" : datetime.datetime, + "date" : "type:datetime", "lang" : "iso:lang", "artist" : ["Arakawa Hiromu"], "author" : ["Arakawa Hiromu"], diff --git a/test/results/mangafox.py b/test/results/mangafox.py index dc0cc9a0..04651496 100644 --- a/test/results/mangafox.py +++ b/test/results/mangafox.py @@ -5,7 +5,6 @@ # published by the Free Software Foundation. from gallery_dl.extractor import mangafox -import datetime __tests__ = ( @@ -40,7 +39,7 @@ __tests__ = ( "chapter" : int, "chapter_minor" : r"re:^(\.\d+)?$", "chapter_string": r"re:(v\d+/)?c\d+", - "date" : datetime.datetime, + "date" : "type:datetime", "description" : "High school boy Naoya gets a confession from Momi, a cute and friendly girl. However, Naoya already has a girlfriend, Seki... but Momi is too good a catch to let go. Momi and Nagoya's goal becomes clear: convince Seki to accept being an item with the two of them. Will she budge?", "lang" : "en", "language" : "English", diff --git a/test/results/mangapark.py b/test/results/mangapark.py index b40ab3fc..2ad5d426 100644 --- a/test/results/mangapark.py +++ b/test/results/mangapark.py @@ -5,7 +5,6 @@ # published by the Free Software Foundation. from gallery_dl.extractor import mangapark -import datetime __tests__ = ( @@ -115,7 +114,7 @@ __tests__ = ( "chapter" : int, "chapter_id" : r"re:\d+", "chapter_minor": str, - "date" : datetime.datetime, + "date" : "type:datetime", "lang" : "en", "language" : "English", "manga_id" : 114972, diff --git a/test/results/nijie.py b/test/results/nijie.py index 4e06f871..b5a53fb1 100644 --- a/test/results/nijie.py +++ b/test/results/nijie.py @@ -5,7 +5,6 @@ # published by the Free Software Foundation. from gallery_dl.extractor import nijie -import datetime from gallery_dl import exception @@ -32,7 +31,7 @@ __tests__ = ( "artist_id" : 44, "artist_name": "ED", "count" : 1, - "date" : datetime.datetime, + "date" : "type:datetime", "description": str, "extension" : "jpg", "filename" : str, diff --git a/test/results/patreon.py b/test/results/patreon.py index f2aeee8b..426981de 100644 --- a/test/results/patreon.py +++ b/test/results/patreon.py @@ -5,7 +5,6 @@ # published by the Free Software Foundation. from gallery_dl.extractor import patreon -import datetime from gallery_dl import exception @@ -21,7 +20,7 @@ __tests__ = ( "comment_count": int, "content" : str, "creator" : dict, - "date" : datetime.datetime, + "date" : "type:datetime", "id" : int, "images" : list, "like_count" : int, diff --git a/test/results/photovogue.py b/test/results/photovogue.py index 6898f5d9..187c374a 100644 --- a/test/results/photovogue.py +++ b/test/results/photovogue.py @@ -5,7 +5,6 @@ # published by the Free Software Foundation. from gallery_dl.extractor import photovogue -import datetime __tests__ = ( @@ -21,7 +20,7 @@ __tests__ = ( "#class" : photovogue.PhotovogueUserExtractor, "#pattern" : "https://images.vogue.it/Photovogue/[^/]+_gallery.jpg", - "date" : datetime.datetime, + "date" : "type:datetime", "favorite_count" : int, "favorited" : list, "id" : int, diff --git a/test/results/picarto.py b/test/results/picarto.py index 07456260..5d2af21f 100644 --- a/test/results/picarto.py +++ b/test/results/picarto.py @@ -5,7 +5,6 @@ # published by the Free Software Foundation. from gallery_dl.extractor import picarto -import datetime __tests__ = ( @@ -16,7 +15,7 @@ __tests__ = ( "#pattern" : r"https://images\.picarto\.tv/gallery/\d/\d\d/\d+/artwork/[0-9a-f-]+/large-[0-9a-f]+\.(jpg|png|gif)", "#count" : ">= 7", - "date": datetime.datetime, + "date": "type:datetime", }, ) diff --git a/test/results/pillowfort.py b/test/results/pillowfort.py index 514697be..fc583614 100644 --- a/test/results/pillowfort.py +++ b/test/results/pillowfort.py @@ -5,7 +5,6 @@ # published by the Free Software Foundation. from gallery_dl.extractor import pillowfort -import datetime __tests__ = ( @@ -24,7 +23,7 @@ __tests__ = ( "content" : str, "count" : 4, "created_at" : str, - "date" : datetime.datetime, + "date" : "type:datetime", "deleted" : None, "deleted_at" : None, "deleted_by_mod" : None, diff --git a/test/results/pixeldrain.py b/test/results/pixeldrain.py index 1afc49b9..563634a0 100644 --- a/test/results/pixeldrain.py +++ b/test/results/pixeldrain.py @@ -5,7 +5,6 @@ # published by the Free Software Foundation. from gallery_dl.extractor import pixeldrain -import datetime __tests__ = ( { @@ -81,7 +80,7 @@ __tests__ = ( "success" : True, "title" : "アルバム", }, - "date" : datetime.datetime, + "date" : "type:datetime", "description": "", "detail_href": r"re:/file/(yEK1n2Qc|jW9E6s4h)/info", "hash_sha256": r"re:\w{64}", diff --git a/test/results/subscribestar.py b/test/results/subscribestar.py index 94850ac3..a8c7146a 100644 --- a/test/results/subscribestar.py +++ b/test/results/subscribestar.py @@ -5,7 +5,6 @@ # published by the Free Software Foundation. from gallery_dl.extractor import subscribestar -import datetime __tests__ = ( @@ -20,7 +19,7 @@ __tests__ = ( "author_name": "subscribestar", "author_nick": "SubscribeStar", "content" : str, - "date" : datetime.datetime, + "date" : "type:datetime", "id" : int, "num" : int, "post_id" : int, @@ -38,7 +37,7 @@ __tests__ = ( "#options" : {"metadata": True}, "#range" : "1", - "date": datetime.datetime, + "date": "type:datetime", }, { diff --git a/test/results/toyhouse.py b/test/results/toyhouse.py index 21d13ee1..46d61954 100644 --- a/test/results/toyhouse.py +++ b/test/results/toyhouse.py @@ -5,7 +5,6 @@ # published by the Free Software Foundation. from gallery_dl.extractor import toyhouse -import datetime __tests__ = ( @@ -19,7 +18,7 @@ __tests__ = ( "artists" : list, "characters": list, - "date" : datetime.datetime, + "date" : "type:datetime", "hash" : r"re:\w+", "id" : r"re:\d+", "url" : str,