[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:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user