diff --git a/product/ERP5Catalog/tests/testArchive.py b/product/ERP5Catalog/tests/testArchive.py index ac5f35db4bfdc92443f6ecf127e41d8008f1a5c9..972011968c5180eadf1859576fb5ffbf2ef8a2d8 100644 --- a/product/ERP5Catalog/tests/testArchive.py +++ b/product/ERP5Catalog/tests/testArchive.py @@ -337,7 +337,13 @@ class TestArchive(InventoryAPITestCase): path_list = [self.inventory.getRelativeUrl()] self.checkRelativeUrlNotInSQLPathList(path_list, connection_id=self.new_connection_id) self.checkRelativeUrlInSQLPathList(path_list, connection_id=self.archive_connection_id) + # check inventory in archive now + self.pref.edit(preferred_archive=archive.getRelativeUrl()) + get_transaction().commit() + self.tic() + self.assertEquals(100, getInventory(node=self.node.getRelativeUrl())) + def test_suite(): suite = unittest.TestSuite()