Skip to content

Commit

Permalink
Update test setup.
Browse files Browse the repository at this point in the history
  • Loading branch information
thefunny42 committed Jan 12, 2016
1 parent 2feda6d commit 4b7f91e
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions src/grokcore/layout/tests/test_package.py
Original file line number Diff line number Diff line change
@@ -1,16 +1,18 @@
# -*- coding: utf-8 -*-

import doctest
import unittest
import pkg_resources
import grokcore.layout.tests
from zope.testing import doctest


layer = grokcore.layout.tests.GrokcoreLayoutLayer(grokcore.layout.tests)


def make_test(dottedname):
test = doctest.DocTestSuite(
dottedname,
optionflags=doctest.ELLIPSIS + doctest.NORMALIZE_WHITESPACE)
test.layer = grokcore.layout.tests.GrokcoreLayoutLayer(grokcore.layout.tests)
test.layer = layer
return test


Expand Down

0 comments on commit 4b7f91e

Please sign in to comment.