Re: [Django] #35986: Test classes with @translation.override decorator are not run (was: Some unit tests in forms_tests.tests.test_input_formats not running)

3 views
Skip to first unread message

Django

unread,
Dec 9, 2024, 5:53:18 AM12/9/24
to django-...@googlegroups.com
#35986: Test classes with @translation.override decorator are not run
----------------------------------+------------------------------------
Reporter: Arthur Pemberton | Owner: (none)
Type: Bug | Status: new
Component: Utilities | Version: 5.1
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 Sarah Boyce):

* component: Uncategorized => Utilities
* stage: Unreviewed => Accepted
* summary: Some unit tests in forms_tests.tests.test_input_formats not
running => Test classes with @translation.override decorator are not
run

Comment:

Thank you - well spotted!
Looks like any test class with a class level `@translation.override` is
affected (this includes `tests.timezones.tests.TemplateTests` and
`tests.timezones.tests.AdminTests`)
--
Ticket URL: <https://code.djangoproject.com/ticket/35986#comment:2>
Django <https://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.
Reply all
Reply to author
Forward
0 new messages