#34730: Add an assertMessages assertion -----------------------------------+-------------------------------------- Reporter: François Freitag | Owner: nobody Type: New feature | Status: new Component: Testing framework | Version: dev Severity: Normal | Resolution: Keywords: | Triage Stage: Unreviewed Has patch: 1 | Needs documentation: 0 Needs tests: 0 | Patch needs improvement: 0 Easy pickings: 0 | UI/UX: 0 -----------------------------------+--------------------------------------
Comment (by Mariusz Felisiak): Thanks for the ticket, however, I'm torn. Introducing app-specific logic in the Django's test classes doesn't sounds right to me. What do you think about instead adding a helper function to the `django.contrib.messages.utils` which would return messages for a response? e.g. `get_messages_from_test_client_response()` -- Ticket URL: <https://code.djangoproject.com/ticket/34730#comment:3> 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 django-updates+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/django-updates/0107018987d3a884-5a9fadc3-f021-413d-80e7-db3c3a8e5100-000000%40eu-central-1.amazonses.com.