mirror of
https://github.com/django/django.git
synced 2025-10-24 06:06:09 +00:00
[1.0.X] Fixed #9323 -- Allow glob loading in INSTALLED_APPS to handle digits in names.
Patch from carljm. Backport of r9994 from trunk. git-svn-id: http://code.djangoproject.com/svn/django/branches/releases/1.0.X@9995 bcc190cf-cafb-0310-a4f2-bffc1f526a37
This commit is contained in:
18
tests/regressiontests/app_loading/tests.py
Normal file
18
tests/regressiontests/app_loading/tests.py
Normal file
@@ -0,0 +1,18 @@
|
||||
"""
|
||||
Test the globbing of INSTALLED_APPS.
|
||||
|
||||
>>> import os, sys
|
||||
>>> old_sys_path = sys.path
|
||||
>>> sys.path.append(os.path.dirname(os.path.abspath(__file__)))
|
||||
|
||||
>>> from django.conf import Settings
|
||||
|
||||
>>> s = Settings('test_settings')
|
||||
|
||||
>>> s.INSTALLED_APPS
|
||||
['parent.app', 'parent.app1']
|
||||
|
||||
>>> sys.path = old_sys_path
|
||||
|
||||
"""
|
||||
|
||||
Reference in New Issue
Block a user