def setUp(self): super(test_MemoryHandlerBackend, self).setUp() app_config.HANDLER_BACKEND_CLASS = 'river.handlers.backends.memory.MemoryHandlerBackend' self.handler_backend = load_handler_backend() self.handler_backend.handlers = {} ObjectService.register_object(self.objects[0], self.field)
def setUp(self): super(test_DatabaseHandlerBackend, self).setUp() self.initialize_normal_scenario() app_config.HANDLER_BACKEND_CLASS = 'river.handlers.backends.database.DatabaseHandlerBackend' self.handler_backend = load_handler_backend() self.handler_backend.handlers = {} ObjectService.register_object(self.objects[0])
def setUp(self): super(test_DatabaseHandlerBackend, self).setUp() RiverConfig.HANDLER_BACKEND_CLASS = 'river.handlers.backends.database.DatabaseHandlerBackend' self.handler_backend = load_handler_backend() self.handler_backend.handlers = {} ObjectService.register_object(self.objects[0], self.field)
def worker2(q): second_handler_backend = load_handler_backend() handlers = second_handler_backend.get_handlers(PostTransitionHandler, self.objects[1], 'my_field') q.put([f.__name__ for f in handlers])
def worker2(q): second_handler_backend = load_handler_backend() handlers = second_handler_backend.get_handlers( PostTransitionHandler, self.objects[1]) q.put([f.__name__ for f in handlers])