Commit 79a55755 authored by Romain Courteaud's avatar Romain Courteaud

No need to filter in python

parent bb47c6cb
...@@ -402,11 +402,13 @@ class TestVifibSlapWebServiceMixin(testVifibMixin): ...@@ -402,11 +402,13 @@ class TestVifibSlapWebServiceMixin(testVifibMixin):
computer_partition = self.portal.portal_catalog.getResultValue( computer_partition = self.portal.portal_catalog.getResultValue(
uid=sequence['computer_partition_uid']) uid=sequence['computer_partition_uid'])
delivery_line_list = [q.getObject() for q in self.portal.portal_catalog( delivery_line_list = [q.getObject() for q in self.portal.portal_catalog(
aggregate_relative_url=computer_partition.getRelativeUrl(), default_aggregate_uid=ComplexQuery(
Query(default_aggregate_uid=computer_partition.getUid()),
Query(default_aggregate_uid=sequence['software_instance_uid']),
operator="AND"),
portal_type=self.sale_packing_list_line_portal_type, portal_type=self.sale_packing_list_line_portal_type,
simulation_state=state, simulation_state=state,
resource_relative_url=resource) if sequence['software_instance_uid'] resource_relative_url=resource)]
in q.getAggregateUidList()]
self.assertEqual(delivery_line_amount, len(delivery_line_list)) self.assertEqual(delivery_line_amount, len(delivery_line_list))
def _checkComputerPartitionNoSalePackingList(self, resource, sequence): def _checkComputerPartitionNoSalePackingList(self, resource, sequence):
......
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