Migrate from pytz to zoneinfo
This commit is contained in:
parent
39c2a0feae
commit
03ac846b5d
12 changed files with 654 additions and 26 deletions
|
@ -1,7 +1,6 @@
|
|||
"""testing the annual summary page"""
|
||||
import datetime
|
||||
from unittest.mock import patch
|
||||
import pytz
|
||||
|
||||
from django.contrib.auth.models import AnonymousUser
|
||||
from django.http import Http404
|
||||
|
@ -15,7 +14,7 @@ from bookwyrm.tests.validate_html import validate_html
|
|||
|
||||
def make_date(*args):
|
||||
"""helper function to easily generate a date obj"""
|
||||
return datetime.datetime(*args, tzinfo=pytz.UTC)
|
||||
return datetime.datetime(*args, tzinfo=datetime.timezone.utc)
|
||||
|
||||
|
||||
class AnnualSummary(TestCase):
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue