[tests/results] replace 'datetime' usage

test for 'dt:…' to catch NullDatetime instances,
which inherit from 'datetime.datetime' but are not exactly this class
This commit is contained in:
Mike Fährmann
2025-10-16 19:58:15 +02:00
parent 69f7cfdd0c
commit d57dc48dcd
20 changed files with 23 additions and 43 deletions

View File

@@ -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,