Skip to content

Commit

Permalink
seems like nose already calls this
Browse files Browse the repository at this point in the history
  • Loading branch information
kraiz committed Apr 26, 2018
1 parent 36c49ec commit 60c40ca
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions tests/__init__.py
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
import os

from django.test.utils import setup_test_environment, teardown_test_environment
# from django.test.utils import setup_test_environment, teardown_test_environment


os.environ.setdefault("DJANGO_SETTINGS_MODULE", "settings")

try:
# Prevent if setup_test_environment has been called previously
teardown_test_environment()
except AttributeError:
pass
# try:
# # Prevent if setup_test_environment has been called previously
# teardown_test_environment()
# except AttributeError:
# pass

setup_test_environment()
# setup_test_environment()

0 comments on commit 60c40ca

Please sign in to comment.