Beispiel #1
0
def setup_module(mod):
    py.test.importorskip("docutils")
    if not py.path.local.sysfind("gs") or \
           not py.path.local.sysfind("dot") or \
           not py.path.local.sysfind("latex"):
        py.test.skip("ghostscript, graphviz and latex needed")
    mod.datadir = getdata()
Beispiel #2
0
def setup_module(mod):
    if not py.path.local.sysfind("gs") or \
           not py.path.local.sysfind("dot") or \
           not py.path.local.sysfind("latex"):
        py.test.skip("ghostscript, graphviz and latex needed")
    try:
        import docutils
    except ImportError:
        py.test.skip("docutils not present")

    mod.datadir = getdata()
Beispiel #3
0
def setup_module(mod):
    required = 'gs', 'dot', 'latex', 'epstopdf', 
    for exe in required:
        if not py.path.local.sysfind(exe):
            py.test.skip("%r not found, required: %r" %(exe, required))
    mod.datadir = getdata()
Beispiel #4
0
def setup_module(mod):
    mod.datadir = getdata()
    mod.testdir = py.test.ensuretemp("rest")
Beispiel #5
0
def setup_module(mod):
    required = 'gs', 'dot', 'latex', 'epstopdf', 
    for exe in required:
        if not py.path.local.sysfind(exe):
            py.test.skip("%r not found, required: %r" %(exe, required))
    mod.datadir = getdata()
Beispiel #6
0
def setup_module(mod):
    mod.datadir = getdata()
    mod.testdir = py.test.ensuretemp("rest")