Skip to content

Commit

Permalink
Do not enable auto setup during tests
Browse files Browse the repository at this point in the history
  • Loading branch information
yakky committed Sep 3, 2016
1 parent f6ffd0a commit a74348d
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
1 change: 1 addition & 0 deletions cms_helper.py
Expand Up @@ -96,6 +96,7 @@ def gettext(s): return s
HAYSTACK_CONNECTIONS={
'default': {}
},
BLOG_AUTO_SETUP=False,
)

try:
Expand Down
6 changes: 6 additions & 0 deletions tests/test_setup.py
Expand Up @@ -12,7 +12,13 @@

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
Expand Down

0 comments on commit a74348d

Please sign in to comment.