wrolpi/modules/videos/test/test_video.py
Roland 9b899f6fc0
A new start
Signed-off-by: Roland <roland@learningselfreliance.com>
2021-11-01 16:43:09 -06:00

12 lines
291 B
Python

from modules.videos.models import Video
from wrolpi.dates import now
def test_timezone(test_session):
"""
A Video's dates should have a TimeZone.
"""
video = Video(upload_date=now())
test_session.add(video)
test_session.commit()
assert video.upload_date.tzinfo