Commit 6d50bf09 authored by Titouan Soulard's avatar Titouan Soulard

erp5_archive: fix tests

I believe the test was wrong from the beginning? It does not seem to match the comments.
parent 975baadb
...@@ -277,7 +277,7 @@ class TestArchive(InventoryAPITestCase): ...@@ -277,7 +277,7 @@ class TestArchive(InventoryAPITestCase):
# Create a new movement and check it goes only in new catalog # Create a new movement and check it goes only in new catalog
self.assertEqual(len(self.folder.searchFolder(portal_type="Dummy Movement")), 0) self.assertEqual(len(self.folder.searchFolder(portal_type="Dummy Movement")), 0)
self.assertEqual(100, getInventory(node_uid=self.node.getUid())) self.assertEqual(0, getInventory(node_uid=self.node.getUid()))
self.new_mvt = self._makeMovement(quantity=50, stop_date=DateTime("2006/08/06"), self.new_mvt = self._makeMovement(quantity=50, stop_date=DateTime("2006/08/06"),
simulation_state='delivered',) simulation_state='delivered',)
self.tic() self.tic()
...@@ -288,7 +288,7 @@ class TestArchive(InventoryAPITestCase): ...@@ -288,7 +288,7 @@ class TestArchive(InventoryAPITestCase):
self.checkRelativeUrlNotInSQLPathList(path_list, connection_id=self.original_connection_id) self.checkRelativeUrlNotInSQLPathList(path_list, connection_id=self.original_connection_id)
self.checkRelativeUrlInSQLPathList(path_list, connection_id=self.new_connection_id) self.checkRelativeUrlInSQLPathList(path_list, connection_id=self.new_connection_id)
self.checkRelativeUrlNotInSQLPathList(path_list, connection_id=self.archive_connection_id) self.checkRelativeUrlNotInSQLPathList(path_list, connection_id=self.archive_connection_id)
self.assertEqual(150, getInventory(node_uid=self.node.getUid())) self.assertEqual(50, getInventory(node_uid=self.node.getUid()))
# now play with preference to select to view document from archive # now play with preference to select to view document from archive
portal_preferences = self.getPreferenceTool() portal_preferences = self.getPreferenceTool()
......
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