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)
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)
def setUp(self): testing.setUp()
def setUp(self): self.config = testing.setUp() self.config.begin() self.config.load_zcml('multivisor:configure.zcml') self.config.end()
def setUp(self): testing.setUp() self.white_list = None
def setUp(self): calendar.setfirstweekday(calendar.SUNDAY) testing.setUp() testing.registerDummyRenderer( 'karl.content.views:templates/calendar_navigation.pt')
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)
def setUp(self): testing.setUp() registerLayoutProvider()
def setUp(self): testing.setUp() testing.registerDummyRenderer( 'karl.content.views:templates/calendar_navigation.pt')