PageRenderTime 32ms CodeModel.GetById 25ms app.highlight 3ms RepoModel.GetById 1ms app.codeStats 1ms

/functional_tests/doc_tests/test_doctest_fixtures/doctest_fixtures_fixtures.py

https://bitbucket.org/jpellerin/nose/
Python | 17 lines | 13 code | 4 blank | 0 comment | 0 complexity | 4ed7f1ad9621248b7f464f9f219e2d41 MD5 | raw file
 1called = []
 2
 3def globs(globs):
 4    globs['something'] = 'Something?'
 5    return globs
 6
 7def setup_module(module):
 8    module.called[:] = []
 9
10def setup_test(test):
11    called.append(test)
12    test.globs['count'] = len(called)
13setup_test.__test__ = False
14    
15def teardown_test(test):
16    pass
17teardown_test.__test__ = False