Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
erp5
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
0
Merge Requests
0
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
Alexander Emmerich
erp5
Commits
9ca6215a
Commit
9ca6215a
authored
Sep 09, 2021
by
Nicolas Wavrant
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
erp5_trade: test more quantities close from bounds for price per slices
parent
789bb038
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 @
9ca6215a
...
...
@@ -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
)
...
...
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