Skip to content

Commit

Permalink
remove tests/__init__.py
Browse files Browse the repository at this point in the history
  • Loading branch information
Thomas Grainger committed Dec 13, 2016
1 parent a2f779d commit 76fd987
Show file tree
Hide file tree
Showing 6 changed files with 10 additions and 6 deletions.
Empty file removed manage.py
Empty file.
3 changes: 0 additions & 3 deletions setup.cfg
Original file line number Diff line number Diff line change
@@ -1,5 +1,2 @@
[wheel]
universal = 1

[tool:pytest]
DJANGO_SETTINGS_MODULE = tests.testproject.settings
Empty file removed tests/__init__.py
Empty file.
7 changes: 7 additions & 0 deletions tests/conftest.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
from django.conf import settings

from testproject import settings as testproject_settings


def pytest_configure():
settings.configure(**vars(testproject_settings))
2 changes: 1 addition & 1 deletion tests/test_command.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
from django.core.management import call_command

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


Expand Down
4 changes: 2 additions & 2 deletions 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 = 'tests.testproject.urls'
ROOT_URLCONF = 'testproject.urls'
INSTALLED_APPS = [
'django_babel',
'tests.testproject',
'testproject',
]
MIDDLEWARE_CLASSES = [
'django.middleware.locale.LocaleMiddleware',
Expand Down

0 comments on commit 76fd987

Please sign in to comment.