Commit 50a01151 authored by Romain Courteaud's avatar Romain Courteaud

slapos_erp5: test: provide virtual master currency

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