Skip to content

Commit 76fd987

Browse files
author
Thomas Grainger
committed
remove tests/__init__.py
1 parent a2f779d commit 76fd987

File tree

6 files changed

+10
-6
lines changed

6 files changed

+10
-6
lines changed

manage.py

Whitespace-only changes.

setup.cfg

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,2 @@
11
[wheel]
22
universal = 1
3-
4-
[tool:pytest]
5-
DJANGO_SETTINGS_MODULE = tests.testproject.settings

tests/__init__.py

Whitespace-only changes.

tests/conftest.py

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
from django.conf import settings
2+
3+
from testproject import settings as testproject_settings
4+
5+
6+
def pytest_configure():
7+
settings.configure(**vars(testproject_settings))

tests/test_command.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
from django.core.management import call_command
55

66
TEST_LOCALE_DIR = pkg_resources.resource_filename(
7-
'tests.testproject', 'locale'
7+
'testproject', 'locale'
88
)
99

1010

tests/testproject/settings.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,10 @@
22

33
SECRET_KEY = 'x'
44
USE_I18N = True
5-
ROOT_URLCONF = 'tests.testproject.urls'
5+
ROOT_URLCONF = 'testproject.urls'
66
INSTALLED_APPS = [
77
'django_babel',
8-
'tests.testproject',
8+
'testproject',
99
]
1010
MIDDLEWARE_CLASSES = [
1111
'django.middleware.locale.LocaleMiddleware',

0 commit comments

Comments
 (0)