Beispiel #1
0
 def setUp(self):
     from repoze.bfg.testing import registerUtility
     from opencore.models.interfaces import ISite
     testing.setUp()
     self._set_alerts_off()
     from opencore.utilities import mbox
     self.tx = mbox.transaction = DummyTransaction()
     self.root = testing.DummyModel()
     self.root['mailbox'] = testing.DummyModel()
     registerUtility(self.root, ISite)
Beispiel #2
0
    def setUp(self):

        config = testing.setUp()
        config_logger = getLogger("config")
        config_logger.setLevel(logging.INFO)
        config.load_zcml('multivisor:configure.zcml')
        config.add_route('ec', '/ec', EchoWebsocket)
        config.add_route('range', '/range', RangeWebsocket)
        config.end()
        self.config = config
        self.logfile = StringIO()
        self.killer = None
        self.spawn_server()
        eventlet.sleep(0.5)
Beispiel #3
0
 def setUp(self):
     testing.setUp()
Beispiel #4
0
 def setUp(self):
     self.config = testing.setUp()
     self.config.begin()
     self.config.load_zcml('multivisor:configure.zcml')
     self.config.end()
Beispiel #5
0
 def setUp(self):
     testing.setUp()
     self.white_list = None
Beispiel #6
0
 def setUp(self):
     calendar.setfirstweekday(calendar.SUNDAY)
     testing.setUp()
     testing.registerDummyRenderer(
         'karl.content.views:templates/calendar_navigation.pt')
Beispiel #7
0
 def setUp(self):
     testing.setUp()
     self.request = testing.DummyRequest()
     sessions = DummySessions()
     self.context = testing.DummyModel(sessions=sessions)
     self.request.api = get_template_api(self.context, self.request)
Beispiel #8
0
 def setUp(self):
     testing.setUp()
     registerLayoutProvider()
Beispiel #9
0
 def setUp(self):
     testing.setUp()
     testing.registerDummyRenderer(
         'karl.content.views:templates/calendar_navigation.pt')