Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
Klaus Wölfel
erp5
Commits
97403610
Commit
97403610
authored
3 years ago
by
Nicolas Wavrant
Browse files
Options
Download
Email Patches
Plain Diff
erp5_trade: test more quantities close from bounds for price per slices
parent
1c564eb0
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
0 deletions
+5
-0
bt5/erp5_trade/TestTemplateItem/portal_components/test.erp5.testResource.py
...tTemplateItem/portal_components/test.erp5.testResource.py
+5
-0
No files found.
bt5/erp5_trade/TestTemplateItem/portal_components/test.erp5.testResource.py
View file @
97403610
...
...
@@ -1336,9 +1336,14 @@ class TestResource(ERP5TypeTestCase):
for
case
in
[
{
'quantity'
:
9
,
'price'
:
90.
/
9
,
'total_price'
:
90.
},
{
'quantity'
:
10
,
'price'
:
100.
/
10
,
'total_price'
:
100.
},
{
'quantity'
:
11
,
'price'
:
109.
/
11
,
'total_price'
:
109.
},
{
'quantity'
:
12
,
'price'
:
118.
/
12
,
'total_price'
:
118.
},
{
'quantity'
:
15
,
'price'
:
145.
/
15
,
'total_price'
:
145.
},
{
'quantity'
:
19
,
'price'
:
181.
/
19
,
'total_price'
:
181.
},
{
'quantity'
:
20
,
'price'
:
190.
/
20
,
'total_price'
:
190.
},
{
'quantity'
:
21
,
'price'
:
198.
/
21
,
'total_price'
:
198.
},
{
'quantity'
:
22
,
'price'
:
206.
/
22
,
'total_price'
:
206.
},
{
'quantity'
:
25
,
'price'
:
230.
/
25
,
'total_price'
:
230.
},
]:
_test
(
**
case
)
...
...
This diff is collapsed.
Click to expand it.
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