Skip to content

Commit a2f779d

Browse files
committed
Move testproject under tests
1 parent 753be70 commit a2f779d

File tree

9 files changed

+6
-4
lines changed

9 files changed

+6
-4
lines changed

setup.cfg

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,4 +2,4 @@
22
universal = 1
33

44
[tool:pytest]
5-
DJANGO_SETTINGS_MODULE = testproject.settings
5+
DJANGO_SETTINGS_MODULE = tests.testproject.settings
File renamed without changes.

tests/test_command.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,9 @@
33
import pkg_resources
44
from django.core.management import call_command
55

6-
TEST_LOCALE_DIR = pkg_resources.resource_filename('testproject', 'locale')
6+
TEST_LOCALE_DIR = pkg_resources.resource_filename(
7+
'tests.testproject', 'locale'
8+
)
79

810

911
def test_babel_compilemessages():

tests/testproject/locale/en/LC_MESSAGES/.gitkeep

Whitespace-only changes.

testproject/settings.py renamed to 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 = 'testproject.urls'
5+
ROOT_URLCONF = 'tests.testproject.urls'
66
INSTALLED_APPS = [
77
'django_babel',
8-
'testproject',
8+
'tests.testproject',
99
]
1010
MIDDLEWARE_CLASSES = [
1111
'django.middleware.locale.LocaleMiddleware',
File renamed without changes.
File renamed without changes.

0 commit comments

Comments
 (0)