Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Newer
Older
100644 23 lines (15 sloc) 0.462 kb
f7495cc @clouserw Minor tweaks to make setup easier
clouserw authored
1 """
2 Basic fabfile to setup environment for running tests
3 """
4 import functools
5 import os
6
7 from fabric.api import local
8
9 ROOT = os.path.abspath(os.path.dirname(__file__))
10
11 os.environ['PYTHONPATH'] = os.pathsep.join([ROOT,
12 os.path.join(ROOT, 'validator')])
13
14 local = functools.partial(local, capture=False)
15
16 def test(pdb=False):
17 cmd = 'nosetests'
18
19 if pdb:
20 cmd += ' --pdb --pdb-failures -s'
21
22 local(cmd)
Something went wrong with that request. Please try again.