-
Notifications
You must be signed in to change notification settings - Fork 0
/
__init__.py
41 lines (29 loc) · 980 Bytes
/
__init__.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
#!/usr/bin/env python
# -*- coding: utf-8 -*-
from __future__ import print_function, absolute_import, division
__docformat__ = "restructuredtext en"
# disable: accessing protected members, too many methods
# pylint: disable=W0212,R0904
from zope.component.hooks import setHooks
from nti.testing.layers import GCLayerMixin
from nti.testing.layers import ZopeComponentLayer
from nti.testing.layers import ConfiguringLayerMixin
import zope.testing.cleanup
class SharedConfiguringTestLayer(ZopeComponentLayer,
GCLayerMixin,
ConfiguringLayerMixin):
set_up_packages = ('nti.wref',)
@classmethod
def setUp(cls):
setHooks()
cls.setUpPackages()
@classmethod
def tearDown(cls):
cls.tearDownPackages()
zope.testing.cleanup.cleanUp()
@classmethod
def testSetUp(cls, test=None):
setHooks()
@classmethod
def testTearDown(cls):
pass