diff --git a/repair/apps/asmfa/tests/test_graph.py b/repair/apps/asmfa/tests/test_graph.py index 6da888492..cceb62f16 100644 --- a/repair/apps/asmfa/tests/test_graph.py +++ b/repair/apps/asmfa/tests/test_graph.py @@ -1251,6 +1251,7 @@ def affect_biofuel_chain(solpart): strat_digest_factor = strat_out_digester_sum / strat_in_digester_sum self.assertAlmostEqual(sq_digest_factor, strat_digest_factor, + places=1, msg=f'the factor at actor {biodigester} in ' 'strategy is not the same as in status quo') @@ -1281,7 +1282,7 @@ def assert_balance_factor(activity): sf_out = out_flows.aggregate(amount=Sum('strategy_amount'))['amount'] sq_factor = (sq_out / sq_in) if sq_out and sq_in else 1 sf_factor = (sf_out / sf_in) if sf_out and sf_in else 1 - self.assertAlmostEqual(sq_factor, sf_factor, + self.assertAlmostEqual(sq_factor, sf_factor, 1, msg='the balance factor at actor ' f'{actor} in strategy is not the ' 'same as in status quo')