Last change
on this file since 5779 was
5139,
checked in by uli, 15 years ago
|
Add a unit test layer, that groks the waeup.sirp package once for
all unit tests.
|
-
Property svn:eol-style set to
native
|
File size:
547 bytes
|
Rev | Line | |
---|
[3521] | 1 | import os.path |
---|
[4920] | 2 | import waeup.sirp |
---|
[3521] | 3 | from zope.app.testing.functional import ZCMLLayer |
---|
| 4 | |
---|
| 5 | ftesting_zcml = os.path.join( |
---|
[4920] | 6 | os.path.dirname(waeup.sirp.__file__), 'ftesting.zcml') |
---|
[4789] | 7 | FunctionalLayer = ZCMLLayer(ftesting_zcml, __name__, 'FunctionalLayer', |
---|
| 8 | allow_teardown=True) |
---|
[5139] | 9 | |
---|
| 10 | class WAeUPSIRPUnitTestLayer(object): |
---|
| 11 | """A layer for doctests that groks `waeup.sirp`. |
---|
| 12 | """ |
---|
| 13 | @classmethod |
---|
| 14 | def setUp(self): |
---|
| 15 | import grok |
---|
| 16 | grok.testing.grok('waeup.sirp') |
---|
| 17 | |
---|
| 18 | @classmethod |
---|
| 19 | def tearDown(self): |
---|
| 20 | pass |
---|
Note: See
TracBrowser for help on using the repository browser.