mirror of
https://github.com/Hopiu/django.git
synced 2026-03-27 11:20:24 +00:00
Patch from carljm. git-svn-id: http://code.djangoproject.com/svn/django/trunk@9994 bcc190cf-cafb-0310-a4f2-bffc1f526a37
18 lines
313 B
Python
18 lines
313 B
Python
"""
|
|
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
|
|
|
|
"""
|
|
|