diff --git a/crud/tests/settings.py b/crud/tests/settings.py index 78e2a247f..d2450045a 100644 --- a/crud/tests/settings.py +++ b/crud/tests/settings.py @@ -5,8 +5,7 @@ BASE_DIR = dirname(dirname(dirname(__file__))) DATABASES = { 'default': { 'ENGINE': 'django.db.backends.sqlite3', - # 'NAME': ':memory:', - 'NAME': '/tmp/db', + 'NAME': ':memory:', }, } @@ -15,11 +14,11 @@ INSTALLED_APPS = ( 'django.contrib.auth', 'django.contrib.messages', 'django.contrib.sessions', - 'crud.tests', + 'crud.tests.stub_app', 'crispy_forms', ) -ROOT_URLCONF = 'crud.tests.urls' +ROOT_URLCONF = 'crud.tests.stub_app.urls' USE_TZ = True @@ -27,7 +26,7 @@ SECRET_KEY = 'zzz...' TEMPLATES = [{ 'BACKEND': 'django.template.backends.django.DjangoTemplates', - 'DIRS': [join(BASE_DIR, 'crud/tests/templates'), + 'DIRS': [join(BASE_DIR, 'crud/tests/stub_app/templates'), join(BASE_DIR, 'templates')], 'APP_DIRS': True, 'OPTIONS': { diff --git a/crud/tests/layouts.yaml b/crud/tests/stub_app/layouts.yaml similarity index 100% rename from crud/tests/layouts.yaml rename to crud/tests/stub_app/layouts.yaml diff --git a/crud/tests/models.py b/crud/tests/stub_app/models.py similarity index 100% rename from crud/tests/models.py rename to crud/tests/stub_app/models.py diff --git a/crud/tests/templates/base.html b/crud/tests/stub_app/templates/base.html similarity index 100% rename from crud/tests/templates/base.html rename to crud/tests/stub_app/templates/base.html diff --git a/crud/tests/urls.py b/crud/tests/stub_app/urls.py similarity index 100% rename from crud/tests/urls.py rename to crud/tests/stub_app/urls.py diff --git a/crud/tests/views.py b/crud/tests/stub_app/views.py similarity index 100% rename from crud/tests/views.py rename to crud/tests/stub_app/views.py diff --git a/crud/tests/test_base.py b/crud/tests/test_base.py index b7dec34ca..a3bebe3f6 100644 --- a/crud/tests/test_base.py +++ b/crud/tests/test_base.py @@ -5,8 +5,8 @@ from model_mommy import mommy from crud.base import (CrispyLayoutFormMixin, CrudListMixin, from_to, get_field_display, make_pagination) -from .models import Continent, Country -from .views import CountryCrudListMixin +from .stub_app.models import Continent, Country +from .stub_app.views import CountryCrudListMixin pytestmark = pytest.mark.django_db