Do not enable auto setup during tests

This commit is contained in:
Iacopo Spalletti 2016-09-03 22:23:16 +02:00
parent f6ffd0a63b
commit a74348df2b
No known key found for this signature in database
GPG key ID: BDCBC2EB289F60C6
2 changed files with 7 additions and 0 deletions

View file

@ -96,6 +96,7 @@ HELPER_SETTINGS = dict(
HAYSTACK_CONNECTIONS={
'default': {}
},
BLOG_AUTO_SETUP=False,
)
try:

View file

@ -12,7 +12,13 @@ from djangocms_blog.cms_appconfig import BlogConfig
from .base import BaseTest
try:
from django.test import override_settings
except ImportError:
from django.test.utils import override_settings
@override_settings(BLOG_AUTO_SETUP=True)
class SetupTest(BaseTest):
@classmethod