Skip to content

Commit

Permalink
split up connection test into separate layers
Browse files Browse the repository at this point in the history
Please travis!
  • Loading branch information
Jim Fulton committed Nov 18, 2016
1 parent fc06d15 commit 58dbb8e
Showing 1 changed file with 9 additions and 3 deletions.
12 changes: 9 additions & 3 deletions src/ZEO/tests/testConnection.py
Expand Up @@ -230,11 +230,17 @@ def invalidations_while_connecting():

def test_suite():
suite = unittest.TestSuite()

for klass in test_classes:
sub = unittest.makeSuite(klass, 'check')
sub.layer = ZODB.tests.util.MininalTestLayer(
klass.__name__ + ' ZEO Connection Tests')
suite.addTest(sub)
suite.addTest(doctest.DocTestSuite(

sub = doctest.DocTestSuite(
setUp=forker.setUp, tearDown=setupstack.tearDown,
))
suite.layer = ZODB.tests.util.MininalTestLayer('ZEO Connection Tests')
)
sub.layer = ZODB.tests.util.MininalTestLayer('ZEO Connection DocTests')
suite.addTest(sub)

return suite

0 comments on commit 58dbb8e

Please sign in to comment.