Commit 44cc2a55 authored by Łukasz Nowak's avatar Łukasz Nowak

Separate functionality.

Creation just creates.
parent 71082cd3
...@@ -50,7 +50,6 @@ class VifibSlaposRestAPIV1Mixin(TestVifibSlapWebServiceMixin): ...@@ -50,7 +50,6 @@ class VifibSlaposRestAPIV1Mixin(TestVifibSlapWebServiceMixin):
for assignment in customer.contentValues(portal_type='Assignment'): for assignment in customer.contentValues(portal_type='Assignment'):
assignment.open() assignment.open()
customer.requestSoftwareInstance = Simulator(self.person_request_simulator)
customer.manage_setLocalRoles(customer.getReference(), customer.manage_setLocalRoles(customer.getReference(),
['Associate']) ['Associate'])
transaction.commit() transaction.commit()
...@@ -80,6 +79,7 @@ class VifibSlaposRestAPIV1Mixin(TestVifibSlapWebServiceMixin): ...@@ -80,6 +79,7 @@ class VifibSlaposRestAPIV1Mixin(TestVifibSlapWebServiceMixin):
self.person_request_simulator = tempfile.mkstemp()[1] self.person_request_simulator = tempfile.mkstemp()[1]
self.customer, self.customer_reference = self.createPerson() self.customer, self.customer_reference = self.createPerson()
self.customer.requestSoftwareInstance = Simulator(self.person_request_simulator)
transaction.commit() transaction.commit()
def beforeTearDown(self): def beforeTearDown(self):
......
33 34
\ No newline at end of file \ No newline at end of file
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