Commit b78f8cfc authored by Ophélie Gagnard's avatar Ophélie Gagnard

improve unit tests

parent 31300689
...@@ -36,13 +36,8 @@ class TestMetadataAgent(SlapOSTestCaseMixin): ...@@ -36,13 +36,8 @@ class TestMetadataAgent(SlapOSTestCaseMixin):
def afterSetUp(self): def afterSetUp(self):
super(TestMetadataAgent, self).afterSetUp() super(TestMetadataAgent, self).afterSetUp()
self.tic() self.tic()
self.portal.portal_catalog.erp5_mysql_innodb.z0_drop_data_analysis()
self.portal.portal_catalog.erp5_mysql_innodb.z_create_data_analysis() self.portal.portal_catalog.erp5_mysql_innodb.z_create_data_analysis()
self.tic() self.tic()
self.portal.data_stream_module.manage_delObjects(ids=[x.getId() for x in self.portal.data_stream_module.objectValues()])
self.portal.data_ingestion_module.manage_delObjects(ids=[x.getId() for x in self.portal.data_ingestion_module.objectValues()])
self.portal.data_array_module.manage_delObjects(ids=[x.getId() for x in self.portal.data_array_module.objectValues()])
self.portal.data_analysis_module.manage_delObjects(ids=[x.getId() for x in self.portal.data_analysis_module.objectValues()])
data_product = getattr(self.portal.data_product_module, 'test_create_action', None) data_product = getattr(self.portal.data_product_module, 'test_create_action', None)
if not data_product: if not data_product:
data_product = self.portal.data_product_module.newContent( data_product = self.portal.data_product_module.newContent(
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment