[svn r63428] added happy path tests for figleaf plugin

--HG--
branch : trunk
This commit is contained in:
briandorsey 2009-03-30 00:40:44 +02:00
parent ab081c68d0
commit fbb0e4b62d
1 changed files with 17 additions and 0 deletions

View File

@ -45,4 +45,21 @@ class FigleafPlugin:
self.figleaf.annotate_html.report_as_html(coverage,
str(reportdir), exclude, {})
def test_generic(plugintester):
plugintester.apicheck(FigleafPlugin)
def test_functional(testdir):
testdir.plugins.append('figleaf')
testdir.makepyfile("""
def f():
x = 42
def test_whatever():
pass
""")
result = testdir.runpytest('-F')
assert result.ret == 0
assert result.stdout.fnmatch_lines([
'*figleaf html*'
])
print result.stdout.str()
assert 0