Commit 9ca6215a authored by Nicolas Wavrant's avatar Nicolas Wavrant

erp5_trade: test more quantities close from bounds for price per slices

parent 789bb038
......@@ -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)
......
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