Fix middleware tests
This commit is contained in:
parent
249a0f7ca1
commit
7ac181dd33
|
|
@ -22,7 +22,7 @@ class MiddlewareTestCase(TestCase):
|
||||||
|
|
||||||
yesterday = timezone.now() - timedelta(1)
|
yesterday = timezone.now() - timedelta(1)
|
||||||
user = UserFactory(username='aschiman@ch.ch', hep_id=23)
|
user = UserFactory(username='aschiman@ch.ch', hep_id=23)
|
||||||
user.license_expiry_date = yesterday
|
user.license_expiry_date = yesterday.date()
|
||||||
|
|
||||||
body = b'"{mutation {\\n addRoom}"'
|
body = b'"{mutation {\\n addRoom}"'
|
||||||
|
|
||||||
|
|
@ -32,7 +32,7 @@ class MiddlewareTestCase(TestCase):
|
||||||
|
|
||||||
yesterday = timezone.now() - timedelta(1)
|
yesterday = timezone.now() - timedelta(1)
|
||||||
user = UserFactory(username='aschiman@ch.ch')
|
user = UserFactory(username='aschiman@ch.ch')
|
||||||
user.license_expiry_date = yesterday
|
user.license_expiry_date = yesterday.date()
|
||||||
|
|
||||||
body = b'"{mutation { logout {"'
|
body = b'"{mutation { logout {"'
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue