mirror of
https://github.com/lrnselfreliance/wrolpi.git
synced 2026-10-26 19:01:39 -04:00
12 lines
291 B
Python
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
|