#36083: LiveServerTestCase fails in parallel test runner if
django.contrib.auth.backends has not yet been imported
-------------------------------------+-------------------------------------
     Reporter:  Adam Zapletal        |                    Owner:  Jacob
                                     |  Walls
         Type:  Bug                  |                   Status:  assigned
    Component:  Testing framework    |                  Version:  dev
     Severity:  Release blocker      |               Resolution:
     Keywords:  TransactionTestCase  |             Triage Stage:  Accepted
  setupclass available_apps          |
    Has patch:  0                    |      Needs documentation:  0
  Needs tests:  0                    |  Patch needs improvement:  0
Easy pickings:  0                    |                    UI/UX:  0
-------------------------------------+-------------------------------------
Comment (by Sarah Boyce):

 One thought I had was whether we want to call checks when the installed
 apps settings change, something like:
 {{{#!diff
 --- a/django/test/signals.py
 +++ b/django/test/signals.py
 @@ -6,6 +6,7 @@ from asgiref.local import Local

  from django.apps import apps
  from django.core.exceptions import ImproperlyConfigured
 +from django.core.management import call_command
  from django.core.signals import setting_changed
  from django.db import connections, router
  from django.db.utils import ConnectionRouter
 @@ -52,6 +53,7 @@ def update_installed_apps(*, setting, **kwargs):
          from django.utils.translation import trans_real

          trans_real._translations = {}
 +        call_command("check")


 }}}
 For the specific test failure, we should probably set the middleware to be
 []
 This would have some performance impact though 🤔
-- 
Ticket URL: <https://code.djangoproject.com/ticket/36083#comment:13>
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 view this discussion visit 
https://groups.google.com/d/msgid/django-updates/010701946a4395fd-c59bcb6a-43de-4a87-bfca-6069864c663b-000000%40eu-central-1.amazonses.com.

Reply via email to