Switch branches/tags
Nothing to show
Find file
Fetching contributors…
Cannot retrieve contributors at this time
32 lines (22 sloc) 800 Bytes
This Source Code Form is subject to the terms of the Mozilla Public
License, v. 2.0. If a copy of the MPL was not distributed with this
file, You can obtain one at
import os
from fabric.api import local
ROOT = os.path.abspath(os.path.dirname(__file__))
os.environ['PYTHONPATH'] = ROOT
def _test(extra_args):
"""Run test suite."""
os.environ['DJANGO_SETTINGS_MODULE'] = 'fancy_tests.tests.settings'
os.environ['REUSE_DB'] = '0'
# Add tables and flush DB
local(' syncdb --noinput')
local(' flush --noinput')
local(' test %s' % extra_args)
def test():
def coverage():
_test('-s --with-coverage --cover-erase --cover-html '