remove tests/__init__.py

This commit is contained in:
Thomas Grainger 2016-12-13 17:57:44 +00:00
parent a2f779d392
commit 76fd987e7f
No known key found for this signature in database
GPG Key ID: 995EA0A029283160
6 changed files with 10 additions and 6 deletions

View File

View File

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

View File

7
tests/conftest.py Normal file
View 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))

View File

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

View File

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