예제 #1
0
 def setUp(self):
     self.setup_app()
     history = model.History()
     self.history = history
     self.trans = MockTrans(self.app, self.history)
     self.app.model.context.add(history)
     self.app.model.context.flush()
     self.action = DefaultToolAction()
     self.app.config.len_file_path = "moocow"
     self.app.object_store = MockObjectStore()
예제 #2
0
 def setUp(self):
     self.setup_app(mock_model=False)
     history = model.History()
     self.history = history
     self.trans = MockTrans(self.app, self.history)
     self.app.model.context.add(history)
     self.app.model.context.flush()
     self.action = DefaultToolAction()
     self.app.config.len_file_path = "moocow"
     self.app.job_config["get_handler"] = lambda h: TEST_HANDLER_NAME
     self.app.object_store = MockObjectStore()