Commit 5f346790 authored by Nicolas Wavrant's avatar Nicolas Wavrant

tests: pass correct arguments to relation setter methods

parent e51b8a82
......@@ -3297,7 +3297,7 @@ class TestAccountingReports(AccountingTestCase, ERP5ReportTestCase):
self._makeOne(
portal_type='Accounting Transaction',
title='Transaction in EUR (our currency)',
resource_value='currency_module/euro',
resource='currency_module/euro',
source_reference='1',
simulation_state='delivered',
destination_section_value=self.organisation_module.client_1,
......
......@@ -94,18 +94,18 @@ class TestBPMMixin(ERP5TypeTestCase):
if create_order_to_invoice_path:
self.createTradeModelPath(self.business_process,
reference='order_path',
trade_phase_value_list=('default/order',))
trade_phase_list=('default/order',))
self.createTradeModelPath(self.business_process,
reference='delivery_path',
trade_phase_value_list=('default/delivery',),
trade_phase_list=('default/delivery',),
trade_date='trade_phase/default/order')
self.createTradeModelPath(self.business_process,
reference='invoice_path',
trade_phase_value_list=('default/invoicing',),
trade_phase_list=('default/invoicing',),
trade_date='trade_phase/default/delivery')
self.createTradeModelPath(business_process,
reference='default_path',
trade_phase_value_list=('default/discount', 'default/tax'),
trade_phase_list=('default/discount', 'default/tax'),
trade_date='trade_phase/default/invoicing')
# A trade model path already exist for root simulation movements
# (Accounting Transaction Root Simulation Rule).
......
......@@ -6765,7 +6765,7 @@ class TestBusinessTemplate(BusinessTemplateMixin):
# we simulated above, but we just want to test that an exported role
# information can be imported back
object_type.newContent(portal_type='Role Information',
local_role_group_value=self.portal.portal_categories.local_role_group.Alternate.getRelativeUrl(),
local_role_group_value=self.portal.portal_categories.local_role_group.Alternate,
role_name_list=('Assignee', ))
bt = self.portal.portal_templates.newContent(
......
......@@ -2818,15 +2818,15 @@ class TestTrackingList(InventoryAPITestCase):
node_b = self._makeOrganisation(title='Node B')
node_c = self._makeOrganisation(title='Node C')
movement_a = self._makeMovement(source_value=node_a,
destination_value=node_b, resource=self.resource,
destination_value=node_b, resource=self.resource.getRelativeUrl(),
quantity=1, aggregate_value=item_a, start_date=now,
simulation_state=state_a)
movement_b = self._makeMovement(source_value=node_b,
destination_value=node_c, resource=self.resource,
destination_value=node_c, resource=self.resource.getRelativeUrl(),
quantity=1, aggregate_value=item_a, start_date=now+1,
simulation_state=state_b)
movement_c = self._makeMovement(source_value=node_a,
destination_value=node_b, resource=self.resource,
destination_value=node_b, resource=self.resource.getRelativeUrl(),
quantity=1, aggregate_value=item_b, start_date=now+1,
simulation_state=state_c)
self.tic()
......
......@@ -298,7 +298,7 @@ class TestKM(TestKMMixIn):
# Web Section mode
websection_knowledge_pad = user_pref.newContent(portal_type = 'Knowledge Pad',
title = "web_section")
websection_knowledge_pad.setGroupValue(default_pad_group)
websection_knowledge_pad.setGroup(default_pad_group)
websection_knowledge_pad1 = websection_knowledge_pad.newContent( \
portal_type = 'Knowledge Box',
title = "web_section_1")
......@@ -311,7 +311,7 @@ class TestKM(TestKMMixIn):
websection_content_knowledge_pad = user_pref.newContent( \
portal_type = 'Knowledge Pad', \
title = "web_section_content")
websection_content_knowledge_pad.setGroupValue(default_pad_group_section_content_title)
websection_content_knowledge_pad.setGroup(default_pad_group_section_content_title)
websection_content_knowledge_pad1 = websection_content_knowledge_pad.newContent( \
portal_type = 'Knowledge Box', \
title = "web_section_content_1")
......
......@@ -110,14 +110,14 @@ CREATE TABLE alternate_roles_and_users (
role_name='Auditor',
role_base_category_script_id='ERP5Type_getSecurityCategoryFromSelf',
role_base_category='agent',
local_role_group_value=self.portal.portal_categories.local_role_group.Alternate.getRelativeUrl())
local_role_group_value=self.portal.portal_categories.local_role_group.Alternate)
# add another role information that does not grant view permission
self.portal.portal_types.Person.newContent(
portal_type='Role Information',
role_name='Unknown',
role_category_list=('group/g1'),
role_base_category='group',
local_role_group_value=self.portal.portal_categories.local_role_group.Alternate.getRelativeUrl())
local_role_group_value=self.portal.portal_categories.local_role_group.Alternate)
self.portal.portal_caches.clearAllCache()
self.tic()
......
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