Commit 1b5431ae authored by Romain Courteaud's avatar Romain Courteaud

slapos_erp5: show latest consistency error

parent c3e33736
...@@ -42,10 +42,11 @@ class TestSlapOSVirtualMasterScenario(DefaultScenarioMixin): ...@@ -42,10 +42,11 @@ class TestSlapOSVirtualMasterScenario(DefaultScenarioMixin):
def stepcheckERP5Consistency(self): def stepcheckERP5Consistency(self):
not_consistent_document = self.portal.portal_catalog.getResultValue( not_consistent_document = self.portal.portal_catalog.getResultValue(
consistency_error=1 consistency_error=1,
sort_on=[('modification_date', 'DESC')]
) )
if not_consistent_document is not None: if not_consistent_document is not None:
assert not_consistent_document.checkConsistency() == [] assert not_consistent_document.checkConsistency() == [], not_consistent_document.checkConsistency()[0]
def test_virtual_master_without_accounting_scenario(self): def test_virtual_master_without_accounting_scenario(self):
# create a default project # create a default project
......
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