Skip to content

Commit

Permalink
test with lower presicion
Browse files Browse the repository at this point in the history
  • Loading branch information
MaxBo committed Oct 22, 2019
1 parent af26b96 commit d34ab57
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion repair/apps/asmfa/tests/test_graph.py
Original file line number Diff line number Diff line change
Expand Up @@ -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')

Expand Down Expand Up @@ -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')
Expand Down

0 comments on commit d34ab57

Please sign in to comment.