예제 #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)
예제 #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)
예제 #3
0
파일: test_files.py 프로젝트: boothead/karl
 def setUp(self):
     testing.setUp()
예제 #4
0
 def setUp(self):
     self.config = testing.setUp()
     self.config.begin()
     self.config.load_zcml('multivisor:configure.zcml')
     self.config.end()
예제 #5
0
 def setUp(self):
     testing.setUp()
     self.white_list = None
예제 #6
0
파일: test_day.py 프로젝트: cguardia/karl
 def setUp(self):
     calendar.setfirstweekday(calendar.SUNDAY)
     testing.setUp()
     testing.registerDummyRenderer(
         'karl.content.views:templates/calendar_navigation.pt')
예제 #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)
예제 #8
0
파일: test_forum.py 프로젝트: cguardia/karl
 def setUp(self):
     testing.setUp()
     registerLayoutProvider()
예제 #9
0
파일: test_utils.py 프로젝트: cguardia/karl
 def setUp(self):
     testing.setUp()
     testing.registerDummyRenderer(
         'karl.content.views:templates/calendar_navigation.pt')