Skip to content

Commit

Permalink
Move testproject under tests
Browse files Browse the repository at this point in the history
  • Loading branch information
akx committed Nov 14, 2016
1 parent 753be70 commit a2f779d
Show file tree
Hide file tree
Showing 9 changed files with 6 additions and 4 deletions.
2 changes: 1 addition & 1 deletion setup.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,4 @@
universal = 1

[tool:pytest]
DJANGO_SETTINGS_MODULE = testproject.settings
DJANGO_SETTINGS_MODULE = tests.testproject.settings
File renamed without changes.
4 changes: 3 additions & 1 deletion tests/test_command.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,9 @@
import pkg_resources
from django.core.management import call_command

TEST_LOCALE_DIR = pkg_resources.resource_filename('testproject', 'locale')
TEST_LOCALE_DIR = pkg_resources.resource_filename(
'tests.testproject', 'locale'
)


def test_babel_compilemessages():
Expand Down
File renamed without changes.
Empty file.
File renamed without changes.
4 changes: 2 additions & 2 deletions testproject/settings.py → tests/testproject/settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,10 @@

SECRET_KEY = 'x'
USE_I18N = True
ROOT_URLCONF = 'testproject.urls'
ROOT_URLCONF = 'tests.testproject.urls'
INSTALLED_APPS = [
'django_babel',
'testproject',
'tests.testproject',
]
MIDDLEWARE_CLASSES = [
'django.middleware.locale.LocaleMiddleware',
Expand Down
File renamed without changes.
File renamed without changes.

0 comments on commit a2f779d

Please sign in to comment.