enhance figleaf setup, enabled by default now (requires --figleaf). Generalize internal ability to show "hints" at the end of "-h".

--HG--
branch : trunk
This commit is contained in:
holger krekel
2010-01-02 22:48:53 +01:00
parent 1b6391d814
commit 56a936993c
10 changed files with 58 additions and 47 deletions

View File

@@ -2,16 +2,16 @@ import py
def test_functional(testdir):
py.test.importorskip("figleaf")
testdir.plugins.append("figleaf")
testdir.makepyfile("""
def f():
x = 42
def test_whatever():
pass
""")
result = testdir.runpytest('-F')
result = testdir.runpytest('--figleaf')
assert result.ret == 0
assert result.stdout.fnmatch_lines([
'*figleaf html*'
])
#print result.stdout.str()