Пример #1
0
 def set_up(self):
     EntityTestCase.set_up(self)
     self._ent0 = create_entity(entity_id=0, entity_text='foo0')
     self._ent1 = create_entity(entity_id=1, entity_text='foo1')
     self._aggregate = get_root_aggregate(IMyEntity)
     self._aggregate.add(self._ent0)
     self._aggregate.add(self._ent1)
Пример #2
0
 def set_up(self):
     Session.remove()
     EntityTestCase.set_up(self)
     local_settings = self.config.get_settings()
     tractor_config_file = local_settings['tractor_config_file']
     tractor_api = make_api_from_config(tractor_config_file)
     self.config.registry.registerUtility(tractor_api, ITractor)  # pylint: disable=E1103
Пример #3
0
 def set_up(self):
     Session.remove()
     EntityTestCase.set_up(self)
     local_settings = self.config.get_settings()
     tractor_config_file = local_settings['tractor_config_file']
     tractor_api = make_api_from_config(tractor_config_file)
     self.config.registry.registerUtility(tractor_api, ITractor) # pylint: disable=E1103
Пример #4
0
 def set_up(self):
     EntityTestCase.set_up(self)
     self._ent0 = create_entity(entity_id=0, entity_text='foo0')
     self._ent1 = create_entity(entity_id=1, entity_text='foo1')
     self._aggregate = get_root_aggregate(IMyEntity)
     self._aggregate.add(self._ent0)
     self._aggregate.add(self._ent1)
Пример #5
0
 def tear_down(self):
     Session.remove()
     EntityTestCase.tear_down(self)
Пример #6
0
 def tear_down(self):
     Session.remove()
     EntityTestCase.tear_down(self)