Commit 70ebae68 authored by Łukasz Nowak's avatar Łukasz Nowak

Share common step in mixin.

parent 1939781d
...@@ -3726,6 +3726,8 @@ class TestVifibSlapWebServiceMixin(testVifibMixin): ...@@ -3726,6 +3726,8 @@ class TestVifibSlapWebServiceMixin(testVifibMixin):
def stepSetDeliveryLineAmountEqualOne(self, sequence): def stepSetDeliveryLineAmountEqualOne(self, sequence):
sequence.edit(delivery_line_amount=1) sequence.edit(delivery_line_amount=1)
def stepSetRandomRequestedReference(self, sequence, **kw):
sequence['requested_reference'] = self.id() + str(random())
class TestVifibSlapWebService(TestVifibSlapWebServiceMixin): class TestVifibSlapWebService(TestVifibSlapWebServiceMixin):
######################################## ########################################
...@@ -4634,9 +4636,6 @@ class TestVifibSlapWebService(TestVifibSlapWebServiceMixin): ...@@ -4634,9 +4636,6 @@ class TestVifibSlapWebService(TestVifibSlapWebServiceMixin):
filter_kw=sequence.get('requested_filter_dict', {}) filter_kw=sequence.get('requested_filter_dict', {})
) )
def stepSetRandomRequestedReference(self, sequence, **kw):
sequence['requested_reference'] = self.id() + str(random())
def stepSetCurrentPersonSlapRequestedSoftwareInstance(self, sequence, **kw): def stepSetCurrentPersonSlapRequestedSoftwareInstance(self, sequence, **kw):
software_instance_list = self.portal.portal_catalog( software_instance_list = self.portal.portal_catalog(
portal_type=self.software_instance_portal_type, portal_type=self.software_instance_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