remove tests/__init__.py
This commit is contained in:
parent
a2f779d392
commit
76fd987e7f
|
@ -1,5 +1,2 @@
|
|||
[wheel]
|
||||
universal = 1
|
||||
|
||||
[tool:pytest]
|
||||
DJANGO_SETTINGS_MODULE = tests.testproject.settings
|
||||
|
|
|
@ -0,0 +1,7 @@
|
|||
from django.conf import settings
|
||||
|
||||
from testproject import settings as testproject_settings
|
||||
|
||||
|
||||
def pytest_configure():
|
||||
settings.configure(**vars(testproject_settings))
|
|
@ -4,7 +4,7 @@ import pkg_resources
|
|||
from django.core.management import call_command
|
||||
|
||||
TEST_LOCALE_DIR = pkg_resources.resource_filename(
|
||||
'tests.testproject', 'locale'
|
||||
'testproject', 'locale'
|
||||
)
|
||||
|
||||
|
||||
|
|
|
@ -2,10 +2,10 @@ import pkg_resources
|
|||
|
||||
SECRET_KEY = 'x'
|
||||
USE_I18N = True
|
||||
ROOT_URLCONF = 'tests.testproject.urls'
|
||||
ROOT_URLCONF = 'testproject.urls'
|
||||
INSTALLED_APPS = [
|
||||
'django_babel',
|
||||
'tests.testproject',
|
||||
'testproject',
|
||||
]
|
||||
MIDDLEWARE_CLASSES = [
|
||||
'django.middleware.locale.LocaleMiddleware',
|
||||
|
|
Loading…
Reference in New Issue