#26004: Invalid app-name in INSTALLED_APPS leads to AppRegistryNotReady when
testing
-------------------------------+--------------------
     Reporter:  HM             |      Owner:  nobody
         Type:  Uncategorized  |     Status:  new
    Component:  Uncategorized  |    Version:  1.9
     Severity:  Normal         |   Keywords:
 Triage Stage:  Unreviewed     |  Has patch:  0
Easy pickings:  0              |      UI/UX:  0
-------------------------------+--------------------
 When testing a standalone app, with a runtests.py like so:

 {{{
 import sys
 import os

 os.environ['DJANGO_SETTINGS_MODULE'] = 'app.tests.settings'

 from django.conf import settings
 from django.test.utils import get_runner

 if __name__ == '__main__':
     from django import setup
     setup()

     TestRunner = get_runner(settings)

     test_runner = TestRunner()
     failures = test_runner.run_tests(settings.INSTALLED_APPS)

     if failures:
         sys.exit(bool(failures))
 }}}

 ... and there is a typo in INSTALLED_APPS, instead of an ImportError
 pointing towards the wrong app-name there's an AppRegistryNotReady.

 This holds for both 1.8.7 and 1.9.

--
Ticket URL: <https://code.djangoproject.com/ticket/26004>
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 post to this group, send email to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-updates/045.eb16df211c52e54e37d0f07d4f827a98%40djangoproject.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to