@@ -104,11 +104,11 @@ def _compare_get_total_result_with_expected(self,
104104 returned_total = round (
105105 sum (r .get ('rate' , r .get ('price' )) for r in total ['results' ]), 5 )
106106 self .assertLessEqual (
107- abs (expected_total - float (returned_total )), 0.00001 )
107+ abs (expected_total - float (returned_total )), 0.0001 )
108108
109109 returned_qty = round (sum (r ['qty' ] for r in total ['results' ]), 5 )
110110 self .assertLessEqual (
111- abs (expected_qty - float (returned_qty )), 0.00001 )
111+ abs (expected_qty - float (returned_qty )), 0.0001 )
112112
113113 def test_get_total_all_scopes_all_periods (self ):
114114 expected_total , expected_qty , _ = self ._expected_total_qty_len (
@@ -193,24 +193,24 @@ def test_get_total_all_scopes_all_periods_groupby_project_id(self):
193193 abs (round (
194194 float (first_element .get ('rate' , first_element .get ('price' )))
195195 - expected_total_first , 5 )),
196- 0.00001 ,
196+ 0.0001 ,
197197 )
198198 second_element = total ['results' ][1 ]
199199 self .assertLessEqual (
200200 abs (round (
201201 float (second_element .get ('rate' , second_element .get ('price' )))
202202 - expected_total_second , 5 )),
203- 0.00001 ,
203+ 0.0001 ,
204204 )
205205 self .assertLessEqual (
206206 abs (round (float (total ['results' ][0 ]['qty' ])
207207 - expected_qty_first , 5 )),
208- 0.00001 ,
208+ 0.0001 ,
209209 )
210210 self .assertLessEqual (
211211 abs (round (float (total ['results' ][1 ]['qty' ])
212212 - expected_qty_second , 5 )),
213- 0.00001 ,
213+ 0.0001 ,
214214 )
215215
216216 def test_get_total_all_scopes_one_period_groupby_project_id (self ):
@@ -236,23 +236,23 @@ def test_get_total_all_scopes_one_period_groupby_project_id(self):
236236 self .assertLessEqual (
237237 abs (round (float (first_entry .get ('rate' , first_entry .get ('price' )))
238238 - expected_total_first , 5 )),
239- 0.00001 ,
239+ 0.0001 ,
240240 )
241241 self .assertLessEqual (
242242 abs (round (
243243 float (second_entry .get ('rate' , second_entry .get ('price' )))
244244 - expected_total_second , 5 )),
245- 0.00001 ,
245+ 0.0001 ,
246246 )
247247 self .assertLessEqual (
248248 abs (round (float (total ['results' ][0 ]['qty' ])
249249 - expected_qty_first , 5 )),
250- 0.00001 ,
250+ 0.0001 ,
251251 )
252252 self .assertLessEqual (
253253 abs (round (float (total ['results' ][1 ]['qty' ])
254254 - expected_qty_second , 5 )),
255- 0.00001 ,
255+ 0.0001 ,
256256 )
257257
258258 def test_get_total_all_scopes_all_periods_groupby_type_paginate (self ):
0 commit comments