diff --git a/product/ERP5/tests/testERP5Credential.py b/product/ERP5/tests/testERP5Credential.py index 872dd082eb82bdee1f43042e8492b51b35a2be55..56d8bc0ffb9df05d9da99481cf0426fc8eafed55 100644 --- a/product/ERP5/tests/testERP5Credential.py +++ b/product/ERP5/tests/testERP5Credential.py @@ -1052,9 +1052,8 @@ class TestERP5Credential(ERP5TypeTestCase): last_name="Test", reference="vifibtest") portal_catalog = self.portal.portal_catalog - credential_request = portal_catalog.getResultValue( - portal_type="Credential Request", reference="vifibtest", - first_name="Vifib", last_name="Test") + credential_request, = portal_catalog( + portal_type="Credential Request", reference="vifibtest") mail_message = portal_catalog.getResultValue( portal_type="Mail Message", default_follow_up_uid=credential_request.getUid())