Skip to content
Fetching contributors…
Cannot retrieve contributors at this time
23 lines (15 sloc) 462 Bytes
Basic fabfile to setup environment for running tests
import functools
import os
from fabric.api import local
ROOT = os.path.abspath(os.path.dirname(__file__))
os.environ['PYTHONPATH'] = os.pathsep.join([ROOT,
os.path.join(ROOT, 'validator')])
local = functools.partial(local, capture=False)
def test(pdb=False):
cmd = 'nosetests'
if pdb:
cmd += ' --pdb --pdb-failures -s'
Jump to Line
Something went wrong with that request. Please try again.