Skip to content

Commit

Permalink
OM-348: fixing test date assigment
Browse files Browse the repository at this point in the history
  • Loading branch information
sniedzielski committed Oct 22, 2024
1 parent f60276a commit 4318415
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions worker_voucher/tests/test_gql_voucher_check.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
from datetime import datetime
from datetime import datetime, timedelta
from django.test import TestCase
from graphene import Schema
from graphene.test import Client
Expand Down Expand Up @@ -38,9 +38,9 @@ def setUpClass(cls):
mutation=Mutation
)

cls.today = datetime.datetime.now()
cls.tomorrow = datetime.datetime.now() + datetime.datetimedelta(days=1)
cls.yesterday = datetime.datetime.now() - datetime.datetimedelta(days=1)
cls.today = datetime.now()
cls.tomorrow = datetime.now() + timedelta(days=1)
cls.yesterday = datetime.now() - timedelta(days=1)

cls.gql_client = Client(gql_schema)
cls.gql_context = cls.GQLContext(None)
Expand Down

0 comments on commit 4318415

Please sign in to comment.