#33400: assertTemplateUsed()/assertTemplateNotUsed() used as context managers ignore count and msg_prefix parameters. -----------------------------------+------------------------------------ Reporter: karyon | Owner: nobody Type: Bug | Status: new Component: Testing framework | Version: 4.0 Severity: Normal | Resolution: Keywords: | Triage Stage: Accepted Has patch: 0 | Needs documentation: 0 Needs tests: 0 | Patch needs improvement: 0 Easy pickings: 0 | UI/UX: 0 -----------------------------------+------------------------------------ Changes (by Mariusz Felisiak):
* stage: Unreviewed => Accepted Comment: Thanks for the report. Only `template_name` is used in [https://docs.djangoproject.com/en/stable/topics/testing/tools/#django.test.SimpleTestCase.assertTemplateUsed documented] calls, however it sounds reasonable to honor `msg_prefix` and `count` when these methods are used as context managers. Would you like to provide a patch? -- Ticket URL: <https://code.djangoproject.com/ticket/33400#comment:1> 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/064.a4b77d8f2ed3cecbc87f701d4be99a13%40djangoproject.com.