#24721: Introduce something similar to mail.outbox for messages
----------------------------------+--------------------------------------
Reporter: mjtamlyn | Owner: nobody
Type: New feature | Status: new
Component: contrib.messages | Version: master
Severity: Normal | Resolution:
Keywords: | Triage Stage: Unreviewed
Has patch: 0 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 0
Easy pickings: 0 | UI/UX: 0
----------------------------------+--------------------------------------
Comment (by carljm):
I like the "test extensions" idea much better than automatically-run hooks
on `AppConfig`. It's still a bit of an "NIH" partial re-implementation of
pytest fixtures, but at least it is fully explicit (and these extension
classes could be structured in such a way that they could be easily reused
as a pytest fixture, which would be awesome). I wouldn't even mind if said
"test extensions" were configured via their own setting rather than as an
attribute of a custom `TestRunner`, to make them easier to use (I'm not
allergic to new settings).
Re the idea of `django.test.pytest`, I think there's some merit to the
idea but it's getting OT for this ticket, so we can discuss it elsewhere
:-)
And it's not "magic" per se that concerns me here - it's implicitly and
automatically monkeypatching things only when under test. It's important
that developers be aware of how their system under test differs from their
system not under test, which is why I don't think such changes should be
made automatically, in most cases.
--
Ticket URL: <https://code.djangoproject.com/ticket/24721#comment:5>
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/066.148732ed316d5ec4580ee59585356088%40djangoproject.com.
For more options, visit https://groups.google.com/d/optout.