Opened 2 years ago

Closed 2 years ago

#19839 closed Bug (fixed)

test is dependent on settings.py ordering: contrib.auth.tests.forms.PasswordResetFormTest.test_custom_email_subject

Reported by: limscoder Owned by: claudep
Component: contrib.auth Version: 1.4
Severity: Normal Keywords:
Cc: Triage Stage: Accepted
Has patch: no Needs documentation: no
Needs tests: no Patch needs improvement: no
Easy pickings: no UI/UX: no

Description

The test 'contrib.auth.tests.forms.PasswordResetFormTest.test_custom_email_subject' is dependent on TEMPLATE_LOADER configuration order in settings.py

passes when:

TEMPLATE_LOADERS = (
    'django.template.loaders.filesystem.Loader',
    'django.template.loaders.app_directories.Loader',
)

fails when:

TEMPLATE_LOADERS = (
    'django.template.loaders.app_directories.Loader',
    'django.template.loaders.filesystem.Loader',
)

Change History (2)

comment:1 Changed 2 years ago by claudep

  • Needs documentation unset
  • Needs tests unset
  • Owner changed from nobody to claudep
  • Patch needs improvement unset
  • Status changed from new to assigned
  • Triage Stage changed from Unreviewed to Accepted

comment:2 Changed 2 years ago by Claude Paroz <claude@…>

  • Resolution set to fixed
  • Status changed from assigned to closed

In 5ec0405a09c4b05b7ee6c58bf52a06290143d788:

Fixed #19839 -- Isolated auth tests from customized TEMPLATE_LOADERS

Thanks limscoder for the report.

Note: See TracTickets for help on using tickets.
Back to Top