changeset ab12a2061118 in modules/sale_opportunity:default
details:
https://hg.tryton.org/modules/sale_opportunity?cmd=changeset&node=ab12a2061118
description:
Compare sale opportunity report amounts with equality in scenario
The precision is different between SQLite and PostgreSQL backends.
issue11681
diffstat:
tests/scenario_sale_opportunity_reporting.rst | 8 ++++----
1 files changed, 4 insertions(+), 4 deletions(-)
diffs (25 lines):
diff -r bc49b54ef788 -r ab12a2061118
tests/scenario_sale_opportunity_reporting.rst
--- a/tests/scenario_sale_opportunity_reporting.rst Sun Sep 11 01:30:15
2022 +0200
+++ b/tests/scenario_sale_opportunity_reporting.rst Sun Sep 11 09:50:24
2022 +0200
@@ -98,8 +98,8 @@
>>> report, = reports
>>> report.number
5
- >>> report.amount
- Decimal('4500.0')
+ >>> report.amount == Decimal('4500.00')
+ True
>>> report.converted
2
>>> report.conversion_rate
@@ -110,8 +110,8 @@
>>> report, = report.time_series
>>> report.number
5
- >>> report.amount
- Decimal('4500.0')
+ >>> report.amount == Decimal('4500.00')
+ True
>>> report.converted
2
>>> report.conversion_rate