Opened 9 years ago
Closed 9 years ago
#26004 closed Bug (needsinfo)
Invalid app-name in INSTALLED_APPS leads to AppRegistryNotReady when testing
Reported by: | HM | Owned by: | nobody |
---|---|---|---|
Component: | Core (Other) | Version: | 1.8 |
Severity: | Normal | Keywords: | |
Cc: | Triage Stage: | Unreviewed | |
Has patch: | no | Needs documentation: | no |
Needs tests: | no | Patch needs improvement: | no |
Easy pickings: | no | UI/UX: | no |
Description
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.
Change History (1)
comment:1 by , 9 years ago
Component: | Uncategorized → Core (Other) |
---|---|
Resolution: | → needsinfo |
Status: | new → closed |
Type: | Uncategorized → Bug |
Version: | 1.9 → 1.8 |
Note:
See TracTickets
for help on using tickets.
I can't reproduce this given the details you provided. Could you provide a sample project to reproduce it and reopen the ticket? Here's the traceback I see: