Skip to content

Commit

Permalink
Update tests
Browse files Browse the repository at this point in the history
  • Loading branch information
Sha-yol committed Nov 23, 2024
1 parent dffdc40 commit d7146dd
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions tests/test_strategies.py
Original file line number Diff line number Diff line change
Expand Up @@ -52,8 +52,11 @@ def test_sw_balance_strategy():
transactions = strategy.create_transactions(mock_expense, mock_user, [])

assert len(transactions) == 2
assert transactions[0]["amount"] == "110.00"
assert transactions[0]["description"] == "Test Expense"
assert transactions[0][0]["amount"] == "60.00"
assert transactions[0][0]["description"] == "Test Expense"
assert float(transactions[0][1]["amount"]) == float("50.00")
assert transactions[0][1]["description"] == "Cover for: Test Expense"
assert transactions[0][1]["category_name"] == ""
assert float(transactions[1]["amount"]) == float("50.00")
assert transactions[1]["type"] == "deposit"
assert transactions[1]["destination_name"] == "Splitwise Balance"
Expand Down

0 comments on commit d7146dd

Please sign in to comment.