merging and refining examples, also refining skipping documentation.

This commit is contained in:
holger krekel
2010-11-20 21:35:55 +01:00
parent bd5a9ba392
commit 158e160823
45 changed files with 371 additions and 452 deletions

View File

@@ -0,0 +1,14 @@
import py
failure_demo = py.path.local(__file__).dirpath('failure_demo.py')
pytest_plugins = 'pytester',
def test_failure_demo_fails_properly(testdir):
target = testdir.tmpdir.join(failure_demo.basename)
failure_demo.copy(target)
failure_demo.copy(testdir.tmpdir.join(failure_demo.basename))
result = testdir.runpytest(target)
result.stdout.fnmatch_lines([
"*35 failed*"
])
assert result.ret != 0