Skip to content
This repository has been archived by the owner on Dec 17, 2020. It is now read-only.

Commit

Permalink
Show diffs in test failures.
Browse files Browse the repository at this point in the history
  • Loading branch information
mgedmin committed Feb 26, 2013
1 parent c180e0a commit 72edad8
Showing 1 changed file with 8 additions and 4 deletions.
12 changes: 8 additions & 4 deletions src/z3c/contents/tests.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,22 +22,26 @@

from z3c.contents import testing

TestLayer = None # shut up pyflakes warning
functional.defineLayer('TestLayer', 'ftesting.zcml',
allow_teardown=True)


def test_suite():
optionflags = (doctest.NORMALIZE_WHITESPACE
| doctest.ELLIPSIS
| doctest.REPORT_NDIFF)
docTest = functional.FunctionalDocFileSuite('BROWSER.txt',
setUp=testing.doctestSetUp, tearDown=testing.doctestTearDown,
optionflags=doctest.NORMALIZE_WHITESPACE|doctest.ELLIPSIS)
optionflags=optionflags)
docTest.layer = TestLayer
return unittest.TestSuite((
return unittest.TestSuite([
doctest.DocFileSuite('README.txt',
setUp=testing.setUp, tearDown=testing.tearDown,
optionflags=doctest.NORMALIZE_WHITESPACE|doctest.ELLIPSIS,
optionflags=optionflags,
),
docTest,
))
])


if __name__ == '__main__':
Expand Down

0 comments on commit 72edad8

Please sign in to comment.