Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
S
slapos.core
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
1
Merge Requests
1
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Romain Courteaud
slapos.core
Commits
15dfa94e
Commit
15dfa94e
authored
May 15, 2023
by
Romain Courteaud
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
slapos_erp5: test: provide virtual master currency
parent
2379276e
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
15 additions
and
14 deletions
+15
-14
master/bt5/slapos_erp5/TestTemplateItem/portal_components/test.erp5.testSlapOSERP5VirtualMasterScenario.py
...mponents/test.erp5.testSlapOSERP5VirtualMasterScenario.py
+15
-14
No files found.
master/bt5/slapos_erp5/TestTemplateItem/portal_components/test.erp5.testSlapOSERP5VirtualMasterScenario.py
View file @
15dfa94e
...
...
@@ -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
()
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment