Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Stopped assuming that INSTALLED_APPS only contains app names.

While this assumption is true for the time being, it makes the code
needlessly brittle.
  • Loading branch information...
commit 74d8fdcfa6a49cb30210c690dff08fc62b642e2a 1 parent 4dc3be2
Aymeric Augustin aaugustin authored
Showing with 2 additions and 1 deletion.
  1. +2 −1  tests/runtests.py
3  tests/runtests.py
View
@@ -167,11 +167,12 @@ def no_available_apps(self):
module_label == label or module_label.startswith(label + '.')
for label in test_labels_set)
+ installed_app_names = set(get_installed())
if module_found_in_labels:
if verbosity >= 2:
print("Importing application %s" % module_name)
# HACK.
- if module_label not in settings.INSTALLED_APPS:
+ if module_label not in installed_app_names:
settings.INSTALLED_APPS.append(module_label)
app_config = AppConfig.create(module_label)
apps.app_configs[app_config.label] = app_config
Please sign in to comment.
Something went wrong with that request. Please try again.