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
9f783dd9
Commit
9f783dd9
authored
Oct 20, 2023
by
Romain Courteaud
🐸
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
slapos_accounting: test: fix trade condition retrieval
parent
aa33139c
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
8 deletions
+8
-8
master/bt5/slapos_accounting/TestTemplateItem/portal_components/test.erp5.testSlapOSAccountingRule.py
...m/portal_components/test.erp5.testSlapOSAccountingRule.py
+8
-8
No files found.
master/bt5/slapos_accounting/TestTemplateItem/portal_components/test.erp5.testSlapOSAccountingRule.py
View file @
9f783dd9
...
@@ -37,7 +37,7 @@ class TestDefaultInvoiceTransactionRule(SlapOSTestCaseMixin):
...
@@ -37,7 +37,7 @@ class TestDefaultInvoiceTransactionRule(SlapOSTestCaseMixin):
resource
,
_
,
_
,
_
,
_
,
aggregate
=
self
.
bootstrapAllocableInstanceTree
(
is_accountable
=
True
)
resource
,
_
,
_
,
_
,
_
,
aggregate
=
self
.
bootstrapAllocableInstanceTree
(
is_accountable
=
True
)
project
=
aggregate
.
getFollowUpValue
()
project
=
aggregate
.
getFollowUpValue
()
trade_condition
=
aggregate
.
getFollowUpValue
().
getSpecialiseValue
(
)
trade_condition
=
project
.
getSourceProjectRelatedValue
(
portal_type
=
"Sale Trade Condition"
)
source
=
trade_condition
.
getSourceSectionValue
()
source
=
trade_condition
.
getSourceSectionValue
()
destination
=
aggregate
.
getDestinationSectionValue
()
destination
=
aggregate
.
getDestinationSectionValue
()
business_process
=
trade_condition
.
getSpecialiseValue
()
business_process
=
trade_condition
.
getSpecialiseValue
()
...
@@ -178,7 +178,7 @@ class TestDefaultInvoiceRule(SlapOSTestCaseMixin):
...
@@ -178,7 +178,7 @@ class TestDefaultInvoiceRule(SlapOSTestCaseMixin):
resource
,
_
,
_
,
_
,
_
,
aggregate
=
self
.
bootstrapAllocableInstanceTree
(
is_accountable
=
True
)
resource
,
_
,
_
,
_
,
_
,
aggregate
=
self
.
bootstrapAllocableInstanceTree
(
is_accountable
=
True
)
project
=
aggregate
.
getFollowUpValue
()
project
=
aggregate
.
getFollowUpValue
()
trade_condition
=
aggregate
.
getFollowUpValue
().
getSpecialiseValue
(
)
trade_condition
=
project
.
getSourceProjectRelatedValue
(
portal_type
=
"Sale Trade Condition"
)
source
=
trade_condition
.
getSourceSectionValue
()
source
=
trade_condition
.
getSourceSectionValue
()
destination
=
aggregate
.
getDestinationSectionValue
()
destination
=
aggregate
.
getDestinationSectionValue
()
business_process
=
trade_condition
.
getSpecialiseValue
()
business_process
=
trade_condition
.
getSpecialiseValue
()
...
@@ -258,7 +258,7 @@ class TestDefaultInvoicingRule(SlapOSTestCaseMixin):
...
@@ -258,7 +258,7 @@ class TestDefaultInvoicingRule(SlapOSTestCaseMixin):
resource
,
_
,
_
,
_
,
_
,
aggregate
=
self
.
bootstrapAllocableInstanceTree
(
is_accountable
=
True
)
resource
,
_
,
_
,
_
,
_
,
aggregate
=
self
.
bootstrapAllocableInstanceTree
(
is_accountable
=
True
)
project
=
aggregate
.
getFollowUpValue
()
project
=
aggregate
.
getFollowUpValue
()
trade_condition
=
aggregate
.
getFollowUpValue
().
getSpecialiseValue
(
)
trade_condition
=
project
.
getSourceProjectRelatedValue
(
portal_type
=
"Sale Trade Condition"
)
source
=
trade_condition
.
getSourceSectionValue
()
source
=
trade_condition
.
getSourceSectionValue
()
destination
=
aggregate
.
getDestinationSectionValue
()
destination
=
aggregate
.
getDestinationSectionValue
()
business_process
=
trade_condition
.
getSpecialiseValue
()
business_process
=
trade_condition
.
getSpecialiseValue
()
...
@@ -390,7 +390,7 @@ class TestDefaultPaymentRule(SlapOSTestCaseMixin):
...
@@ -390,7 +390,7 @@ class TestDefaultPaymentRule(SlapOSTestCaseMixin):
_
,
_
,
_
,
_
,
_
,
aggregate
=
self
.
bootstrapAllocableInstanceTree
(
is_accountable
=
True
)
_
,
_
,
_
,
_
,
_
,
aggregate
=
self
.
bootstrapAllocableInstanceTree
(
is_accountable
=
True
)
project
=
aggregate
.
getFollowUpValue
()
project
=
aggregate
.
getFollowUpValue
()
trade_condition
=
aggregate
.
getFollowUpValue
().
getSpecialiseValue
(
)
trade_condition
=
project
.
getSourceProjectRelatedValue
(
portal_type
=
"Sale Trade Condition"
)
source
=
trade_condition
.
getSourceSectionValue
()
source
=
trade_condition
.
getSourceSectionValue
()
destination
=
aggregate
.
getDestinationSectionValue
()
destination
=
aggregate
.
getDestinationSectionValue
()
business_process
=
trade_condition
.
getSpecialiseValue
()
business_process
=
trade_condition
.
getSpecialiseValue
()
...
@@ -457,7 +457,7 @@ class TestHostingSubscriptionSimulation(SlapOSTestCaseMixin):
...
@@ -457,7 +457,7 @@ class TestHostingSubscriptionSimulation(SlapOSTestCaseMixin):
software_product
,
_
,
_
,
_
,
_
,
self
.
instance_tree
=
self
.
bootstrapAllocableInstanceTree
(
is_accountable
=
True
,
base_price
=
9
)
software_product
,
_
,
_
,
_
,
_
,
self
.
instance_tree
=
self
.
bootstrapAllocableInstanceTree
(
is_accountable
=
True
,
base_price
=
9
)
project
=
software_product
.
getFollowUpValue
()
project
=
software_product
.
getFollowUpValue
()
trade_condition
=
project
.
getS
pecialiseValue
(
)
trade_condition
=
project
.
getS
ourceProjectRelatedValue
(
portal_type
=
"Sale Trade Condition"
)
# This test expect no accounting.
# This test expect no accounting.
# Disable this by not setting a source section on the trade condition
# Disable this by not setting a source section on the trade condition
trade_condition
.
edit
(
source_section
=
None
)
trade_condition
.
edit
(
source_section
=
None
)
...
@@ -715,7 +715,7 @@ class TestDefaultTradeModelRule(SlapOSTestCaseMixin):
...
@@ -715,7 +715,7 @@ class TestDefaultTradeModelRule(SlapOSTestCaseMixin):
resource
,
_
,
_
,
_
,
_
,
aggregate
=
self
.
bootstrapAllocableInstanceTree
(
is_accountable
=
True
)
resource
,
_
,
_
,
_
,
_
,
aggregate
=
self
.
bootstrapAllocableInstanceTree
(
is_accountable
=
True
)
project
=
aggregate
.
getFollowUpValue
()
project
=
aggregate
.
getFollowUpValue
()
trade_condition
=
aggregate
.
getFollowUpValue
().
getSpecialiseValue
(
)
trade_condition
=
project
.
getSourceProjectRelatedValue
(
portal_type
=
"Sale Trade Condition"
)
source
=
trade_condition
.
getSourceSectionValue
()
source
=
trade_condition
.
getSourceSectionValue
()
destination
=
aggregate
.
getDestinationSectionValue
()
destination
=
aggregate
.
getDestinationSectionValue
()
price_currency
=
trade_condition
.
getPriceCurrencyValue
()
price_currency
=
trade_condition
.
getPriceCurrencyValue
()
...
@@ -833,7 +833,7 @@ class TestDefaultDeliveryRule(SlapOSTestCaseMixin):
...
@@ -833,7 +833,7 @@ class TestDefaultDeliveryRule(SlapOSTestCaseMixin):
def
test
(
self
):
def
test
(
self
):
resource
,
_
,
_
,
_
,
_
,
aggregate
=
self
.
bootstrapAllocableInstanceTree
(
is_accountable
=
True
)
resource
,
_
,
_
,
_
,
_
,
aggregate
=
self
.
bootstrapAllocableInstanceTree
(
is_accountable
=
True
)
project
=
aggregate
.
getFollowUpValue
()
project
=
aggregate
.
getFollowUpValue
()
trade_condition
=
aggregate
.
getFollowUpValue
().
getSpecialiseValue
(
)
trade_condition
=
project
.
getSourceProjectRelatedValue
(
portal_type
=
"Sale Trade Condition"
)
source
=
trade_condition
.
getSourceSectionValue
()
source
=
trade_condition
.
getSourceSectionValue
()
destination
=
aggregate
.
getDestinationSectionValue
()
destination
=
aggregate
.
getDestinationSectionValue
()
price_currency
=
trade_condition
.
getPriceCurrencyValue
()
price_currency
=
trade_condition
.
getPriceCurrencyValue
()
...
@@ -924,7 +924,7 @@ class TestDefaultDeliveryRuleConsumption(SlapOSTestCaseMixin):
...
@@ -924,7 +924,7 @@ class TestDefaultDeliveryRuleConsumption(SlapOSTestCaseMixin):
def
test
(
self
):
def
test
(
self
):
resource
,
_
,
_
,
_
,
_
,
aggregate
=
self
.
bootstrapAllocableInstanceTree
(
is_accountable
=
True
)
resource
,
_
,
_
,
_
,
_
,
aggregate
=
self
.
bootstrapAllocableInstanceTree
(
is_accountable
=
True
)
project
=
aggregate
.
getFollowUpValue
()
project
=
aggregate
.
getFollowUpValue
()
trade_condition
=
aggregate
.
getFollowUpValue
().
getSpecialiseValue
(
)
trade_condition
=
project
.
getSourceProjectRelatedValue
(
portal_type
=
"Sale Trade Condition"
)
source
=
trade_condition
.
getSourceSectionValue
()
source
=
trade_condition
.
getSourceSectionValue
()
destination
=
aggregate
.
getDestinationSectionValue
()
destination
=
aggregate
.
getDestinationSectionValue
()
price_currency
=
trade_condition
.
getPriceCurrencyValue
()
price_currency
=
trade_condition
.
getPriceCurrencyValue
()
...
...
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