Monday, July 30, 2018

Django tests and token timeout

hi,

i'm using my own PasswordResetTokenGenerator which has a timeout that is
not given in days but hours, to make the password token timeout more
fine grained. Is there a way to test such a timeout in Django tests,
i.e. something that lets the unit test use a fake time in the future?

cheers,
Birger

--
You received this message because you are subscribed to the Google Groups "Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to django-users+unsubscribe@googlegroups.com.
To post to this group, send email to django-users@googlegroups.com.
Visit this group at https://groups.google.com/group/django-users.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/0908c2cb-6b0b-de14-765f-be1e81b33769%40rantanplan.org.
For more options, visit https://groups.google.com/d/optout.

No comments:

Post a Comment