Always run tests on current dir and not on the system installed module

This commit is contained in:
Miro Hrončok 2014-04-15 15:49:47 +02:00
parent c93ddf1750
commit 172f0d3328
2 changed files with 2 additions and 2 deletions

View File

@ -10,7 +10,7 @@ import os
import sys
# fix sys path so we don't need to setup PYTHONPATH
sys.path.append(os.path.join(os.path.dirname(__file__), "../.."))
sys.path = [os.path.join(os.path.dirname(__file__), "../..")] + sys.path
os.environ['DJANGO_SETTINGS_MODULE'] = 'rest_framework.runtests.settings'
from coverage import coverage

View File

@ -7,7 +7,7 @@ import os
import sys
# fix sys path so we don't need to setup PYTHONPATH
sys.path.append(os.path.join(os.path.dirname(__file__), "../.."))
sys.path = [os.path.join(os.path.dirname(__file__), "../..")] + sys.path
os.environ['DJANGO_SETTINGS_MODULE'] = 'rest_framework.runtests.settings'
import django