[svn r63428] added happy path tests for figleaf plugin
--HG-- branch : trunk
This commit is contained in:
parent
ab081c68d0
commit
fbb0e4b62d
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue