#23792: Create contextmanager to freeze time.time() in tests
--------------------------------------+------------------------------------
Reporter: tchaumeny | Owner: nobody
Type: Cleanup/optimization | Status: new
Component: Testing framework | Version: master
Severity: Normal | Resolution:
Keywords: | Triage Stage: Accepted
Has patch: 1 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 0
Easy pickings: 0 | UI/UX: 0
--------------------------------------+------------------------------------
Comment (by timgraham):
Our current policy for test dependencies is to skip any tests when the
dependencies aren't installed, so I'm not sure if adding a dependency is
worth it for the affected tests. On the other hand, if freezegun could be
used more often in our tests (haven't looked), then maybe it's worth
trying to change the policy and make it a hard dependency. Making mock a
hard dependency was proposed in #23289. I think the state of virtualenv,
etc. is at a point where we could make this a requirement, but I'll write
to the mailing list about it if there are no immediate objections here.
--
Ticket URL: <https://code.djangoproject.com/ticket/23792#comment:4>
Django <https://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.
--
You received this message because you are subscribed to the Google Groups
"Django updates" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/django-updates/067.c407776614ada6f682af624a41732283%40djangoproject.com.
For more options, visit https://groups.google.com/d/optout.