remove tests/__init__.py
This commit is contained in:
@@ -1,5 +1,2 @@
|
|||||||
[wheel]
|
[wheel]
|
||||||
universal = 1
|
universal = 1
|
||||||
|
|
||||||
[tool:pytest]
|
|
||||||
DJANGO_SETTINGS_MODULE = tests.testproject.settings
|
|
||||||
|
|||||||
7
tests/conftest.py
Normal file
7
tests/conftest.py
Normal file
@@ -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
|
from django.core.management import call_command
|
||||||
|
|
||||||
TEST_LOCALE_DIR = pkg_resources.resource_filename(
|
TEST_LOCALE_DIR = pkg_resources.resource_filename(
|
||||||
'tests.testproject', 'locale'
|
'testproject', 'locale'
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@@ -2,10 +2,10 @@ import pkg_resources
|
|||||||
|
|
||||||
SECRET_KEY = 'x'
|
SECRET_KEY = 'x'
|
||||||
USE_I18N = True
|
USE_I18N = True
|
||||||
ROOT_URLCONF = 'tests.testproject.urls'
|
ROOT_URLCONF = 'testproject.urls'
|
||||||
INSTALLED_APPS = [
|
INSTALLED_APPS = [
|
||||||
'django_babel',
|
'django_babel',
|
||||||
'tests.testproject',
|
'testproject',
|
||||||
]
|
]
|
||||||
MIDDLEWARE_CLASSES = [
|
MIDDLEWARE_CLASSES = [
|
||||||
'django.middleware.locale.LocaleMiddleware',
|
'django.middleware.locale.LocaleMiddleware',
|
||||||
|
|||||||
Reference in New Issue
Block a user