Move testproject under tests
This commit is contained in:
parent
753be70b0c
commit
a2f779d392
|
@ -2,4 +2,4 @@
|
|||
universal = 1
|
||||
|
||||
[tool:pytest]
|
||||
DJANGO_SETTINGS_MODULE = testproject.settings
|
||||
DJANGO_SETTINGS_MODULE = tests.testproject.settings
|
||||
|
|
|
@ -3,7 +3,9 @@ import os
|
|||
import pkg_resources
|
||||
from django.core.management import call_command
|
||||
|
||||
TEST_LOCALE_DIR = pkg_resources.resource_filename('testproject', 'locale')
|
||||
TEST_LOCALE_DIR = pkg_resources.resource_filename(
|
||||
'tests.testproject', 'locale'
|
||||
)
|
||||
|
||||
|
||||
def test_babel_compilemessages():
|
||||
|
|
|
@ -2,10 +2,10 @@ import pkg_resources
|
|||
|
||||
SECRET_KEY = 'x'
|
||||
USE_I18N = True
|
||||
ROOT_URLCONF = 'testproject.urls'
|
||||
ROOT_URLCONF = 'tests.testproject.urls'
|
||||
INSTALLED_APPS = [
|
||||
'django_babel',
|
||||
'testproject',
|
||||
'tests.testproject',
|
||||
]
|
||||
MIDDLEWARE_CLASSES = [
|
||||
'django.middleware.locale.LocaleMiddleware',
|
Loading…
Reference in New Issue