Commit 15dfa94e authored by Romain Courteaud's avatar Romain Courteaud

slapos_erp5: test: provide virtual master currency

parent 2379276e
......@@ -187,7 +187,8 @@ class TestSlapOSVirtualMasterScenarioMixin(DefaultScenarioMixin):
reference=title,
specialise_value=sale_trade_condition,
source_value=seller_organisation,
source_section_value=source_section_value
source_section_value=source_section_value,
price_currency_value=currency,
)
sale_trade_condition.validate()
......@@ -214,7 +215,7 @@ class TestSlapOSVirtualMasterScenarioMixin(DefaultScenarioMixin):
class TestSlapOSVirtualMasterScenario(TestSlapOSVirtualMasterScenarioMixin):
def test_virtual_master_without_accounting_scenario(self):
_, _, _, sale_person = self.bootstrapVirtualMasterTest(is_virtual_master_accountable=False)
currency, _, _, sale_person = self.bootstrapVirtualMasterTest(is_virtual_master_accountable=False)
self.tic()
......@@ -236,7 +237,7 @@ class TestSlapOSVirtualMasterScenario(TestSlapOSVirtualMasterScenarioMixin):
self.login(sale_person.getUserId())
# create a default project
project_relative_url = self.addProject(person=owner_person)
project_relative_url = self.addProject(person=owner_person, currency=currency)
self.logout()
self.login()
......@@ -383,7 +384,7 @@ class TestSlapOSVirtualMasterScenario(TestSlapOSVirtualMasterScenarioMixin):
self.logout()
self.login(sale_person.getUserId())
project_relative_url = self.addProject(is_accountable=True, person=owner_person)
project_relative_url = self.addProject(is_accountable=True, person=owner_person, currency=currency)
self.logout()
......@@ -578,7 +579,7 @@ class TestSlapOSVirtualMasterScenario(TestSlapOSVirtualMasterScenarioMixin):
def test_virtual_master_slave_without_accounting_scenario(self):
_, _, _, sale_person = self.bootstrapVirtualMasterTest(is_virtual_master_accountable=False)
currency, _, _, sale_person = self.bootstrapVirtualMasterTest(is_virtual_master_accountable=False)
self.web_site = self.portal.web_site_module.slapos_master_panel
......@@ -598,7 +599,7 @@ class TestSlapOSVirtualMasterScenario(TestSlapOSVirtualMasterScenarioMixin):
self.logout()
self.login(sale_person.getUserId())
# create a default project
project_relative_url = self.addProject(person=owner_person)
project_relative_url = self.addProject(person=owner_person, currency=currency)
self.logout()
self.login()
......@@ -737,7 +738,7 @@ class TestSlapOSVirtualMasterScenario(TestSlapOSVirtualMasterScenarioMixin):
def test_virtual_master_slave_on_same_tree_without_accounting_scenario(self):
_, _, _, sale_person = self.bootstrapVirtualMasterTest(is_virtual_master_accountable=False)
currency, _, _, sale_person = self.bootstrapVirtualMasterTest(is_virtual_master_accountable=False)
self.web_site = self.portal.web_site_module.slapos_master_panel
......@@ -757,7 +758,7 @@ class TestSlapOSVirtualMasterScenario(TestSlapOSVirtualMasterScenarioMixin):
self.logout()
self.login(sale_person.getUserId())
# create a default project
project_relative_url = self.addProject(person=owner_person)
project_relative_url = self.addProject(person=owner_person, currency=currency)
self.logout()
self.login()
......@@ -856,7 +857,7 @@ class TestSlapOSVirtualMasterScenario(TestSlapOSVirtualMasterScenarioMixin):
def test_virtual_master_on_remote_tree_without_accounting_scenario(self):
_, _, _, sale_person = self.bootstrapVirtualMasterTest(is_virtual_master_accountable=False)
currency, _, _, sale_person = self.bootstrapVirtualMasterTest(is_virtual_master_accountable=False)
self.web_site = self.portal.web_site_module.slapos_master_panel
......@@ -876,7 +877,7 @@ class TestSlapOSVirtualMasterScenario(TestSlapOSVirtualMasterScenarioMixin):
self.logout()
self.login(sale_person.getUserId())
# create a default project
remote_project_relative_url = self.addProject(person=remote_owner_person)
remote_project_relative_url = self.addProject(person=remote_owner_person, currency=currency)
self.logout()
self.login()
......@@ -939,7 +940,7 @@ class TestSlapOSVirtualMasterScenario(TestSlapOSVirtualMasterScenarioMixin):
self.logout()
self.login(sale_person.getUserId())
# create a default project
project_relative_url = self.addProject(person=remote_public_person)
project_relative_url = self.addProject(person=remote_public_person, currency=currency)
self.logout()
self.login()
......@@ -1086,7 +1087,7 @@ class TestSlapOSVirtualMasterScenario(TestSlapOSVirtualMasterScenarioMixin):
def test_virtual_master_slave_instance_on_remote_tree_without_accounting_scenario(self):
_, _, _, sale_person = self.bootstrapVirtualMasterTest(is_virtual_master_accountable=False)
currency, _, _, sale_person = self.bootstrapVirtualMasterTest(is_virtual_master_accountable=False)
self.web_site = self.portal.web_site_module.slapos_master_panel
......@@ -1106,7 +1107,7 @@ class TestSlapOSVirtualMasterScenario(TestSlapOSVirtualMasterScenarioMixin):
self.logout()
self.login(sale_person.getUserId())
# create a default project
remote_project_relative_url = self.addProject(person=remote_owner_person)
remote_project_relative_url = self.addProject(person=remote_owner_person, currency=currency)
self.logout()
self.login()
......@@ -1187,7 +1188,7 @@ class TestSlapOSVirtualMasterScenario(TestSlapOSVirtualMasterScenarioMixin):
self.logout()
self.login(sale_person.getUserId())
# create a default project
project_relative_url = self.addProject(person=remote_public_person)
project_relative_url = self.addProject(person=remote_public_person, currency=currency)
self.logout()
self.login()
......
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