Move testproject under tests

This commit is contained in:
Aarni Koskela 2016-11-14 17:14:35 +02:00
parent 753be70b0c
commit a2f779d392
9 changed files with 6 additions and 4 deletions

View File

@ -2,4 +2,4 @@
universal = 1
[tool:pytest]
DJANGO_SETTINGS_MODULE = testproject.settings
DJANGO_SETTINGS_MODULE = tests.testproject.settings

View File

@ -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():

View File

@ -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',