Do not enable auto setup during tests
This commit is contained in:
parent
f6ffd0a63b
commit
a74348df2b
2 changed files with 7 additions and 0 deletions
|
@ -96,6 +96,7 @@ HELPER_SETTINGS = dict(
|
||||||
HAYSTACK_CONNECTIONS={
|
HAYSTACK_CONNECTIONS={
|
||||||
'default': {}
|
'default': {}
|
||||||
},
|
},
|
||||||
|
BLOG_AUTO_SETUP=False,
|
||||||
)
|
)
|
||||||
|
|
||||||
try:
|
try:
|
||||||
|
|
|
@ -12,7 +12,13 @@ from djangocms_blog.cms_appconfig import BlogConfig
|
||||||
|
|
||||||
from .base import BaseTest
|
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):
|
class SetupTest(BaseTest):
|
||||||
|
|
||||||
@classmethod
|
@classmethod
|
||||||
|
|
Loading…
Add table
Reference in a new issue