Skip to content

Commit

Permalink
Revert "[Add] tolerance for TransferDepositTransaction (#13)"
Browse files Browse the repository at this point in the history
This reverts commit 34e80dc.
  • Loading branch information
ileodo authored Feb 26, 2024
1 parent 34e80dc commit 06da5f5
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions src/moneywiz_api/model/transaction.py
Original file line number Diff line number Diff line change
Expand Up @@ -306,9 +306,8 @@ def validate(self):

assert self.original_exchange_rate is not None

assert self.amount == pytest.approx(
abs(self.original_amount),
abs=0.001,
assert self.amount == abs(
self.original_amount
) # sign of original_amount could be wrong, need DB cleanup
assert self.amount == pytest.approx(
-self.sender_amount * self.original_exchange_rate,
Expand Down

0 comments on commit 06da5f5

Please sign in to comment.