~cjwatson/lazr.restful/test-fixes

« back to all changes in this revision

Viewing changes to src/lazr/restful/example/base_extended/tests/test_integration.py

  • Committer: Colin Watson
  • Date: 2018-09-28 15:34:25 UTC
  • Revision ID: cjwatson@canonical.com-20180928153425-v0vqr4ootjwutakz
Use the load_tests protocol.

Show diffs side-by-side

added added

removed removed

Lines of Context:
30
30
wsgi_intercept_layer(WSGILayer)
31
31
 
32
32
 
33
 
def additional_tests():
 
33
def load_tests(loader, tests, pattern):
34
34
    """See `zope.testing.testrunner`."""
35
 
    tests = ['../README.txt']
36
 
    suite = doctest.DocFileSuite(optionflags=DOCTEST_FLAGS, *tests)
 
35
    doctest_files = ['../README.txt']
 
36
    suite = doctest.DocFileSuite(optionflags=DOCTEST_FLAGS, *doctest_files)
37
37
    suite.layer = WSGILayer
38
 
    return suite
 
38
    tests.addTest(suite)
 
39
    return tests