Commit d63c4d4f authored by Gabriel Monnerat's avatar Gabriel Monnerat

Change test add one critetion to filter by validation_state instead of use...

Change test add one critetion to filter by validation_state instead of use reference hardcoded. Also, the test predicate returns False when this criterion does not match
parent df727050
...@@ -473,9 +473,9 @@ class TestCRM(BaseTestCRM): ...@@ -473,9 +473,9 @@ class TestCRM(BaseTestCRM):
id='event_path_domain') id='event_path_domain')
person_domain = base_domain.newContent(portal_type="Domain", person_domain = base_domain.newContent(portal_type="Domain",
title="All Customers") title="All Customers")
person_domain.setCriterionPropertyList(['portal_type', 'reference']) person_domain.setCriterionPropertyList(['portal_type', 'validation_state'])
person_domain.setCriterion('portal_type', identity=['Person']) person_domain.setCriterion('portal_type', identity=['Person'])
person_domain.setCriterion('reference', identity=['!= sender']) person_domain.setCriterion('validation_state', identity=['validated'])
organisation_domain = base_domain.newContent(portal_type="Domain", organisation_domain = base_domain.newContent(portal_type="Domain",
title="All Organisations") title="All Organisations")
organisation_domain.setCriterionPropertyList(['portal_type']) organisation_domain.setCriterionPropertyList(['portal_type'])
......
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