Commit bdf4995d by Timothée Peignier

fix tests runner

parent 80aa5a64
...@@ -13,7 +13,7 @@ if not settings.configured: ...@@ -13,7 +13,7 @@ if not settings.configured:
DATABASE_ENGINE='sqlite3', DATABASE_ENGINE='sqlite3',
INSTALLED_APPS=[ INSTALLED_APPS=[
'pipeline', 'pipeline',
'tests', 'tests'
], ],
MEDIA_URL='/media/', MEDIA_URL='/media/',
MEDIA_ROOT=os.path.join(TEST_DIR, 'media/'), MEDIA_ROOT=os.path.join(TEST_DIR, 'media/'),
...@@ -31,8 +31,8 @@ from django.test.simple import run_tests ...@@ -31,8 +31,8 @@ from django.test.simple import run_tests
def runtests(*test_args): def runtests(*test_args):
if not test_args: if not test_args:
test_args = ['tests'] test_args = ['tests']
parent_dir = os.path.join(TEST_DIR, "..") parent_dir = os.path.join(TEST_DIR, "../")
sys.path.insert(0, os.path.join(TEST_DIR, "..")) sys.path.insert(0, parent_dir)
cover = coverage.coverage(branch=True, cover_pylib=False, cover = coverage.coverage(branch=True, cover_pylib=False,
include=[ include=[
os.path.join(parent_dir, 'pipeline', '*.py') os.path.join(parent_dir, 'pipeline', '*.py')
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment