Python formatting

This commit is contained in:
Mouse Reeve 2021-10-16 10:38:45 -07:00
parent 68cbea60a9
commit ea268449fa
1 changed files with 1 additions and 2 deletions

View File

@ -84,8 +84,7 @@ class PasswordViews(TestCase):
"""there are so many views, this just makes sure it LOADS""" """there are so many views, this just makes sure it LOADS"""
view = views.PasswordReset.as_view() view = views.PasswordReset.as_view()
code = models.PasswordReset.objects.create( code = models.PasswordReset.objects.create(
user=self.local_user, user=self.local_user, expiry=timezone.now() - timedelta(days=2)
expiry=timezone.now() - timedelta(days=2)
) )
request = self.factory.get("") request = self.factory.get("")
request.user = self.anonymous_user request.user = self.anonymous_user