Skip to content

Commit

Permalink
Fix base account test
Browse files Browse the repository at this point in the history
  • Loading branch information
sndmndss committed Aug 28, 2024
1 parent 7b672eb commit 959cfc7
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions tests/test_base_account.py
Original file line number Diff line number Diff line change
Expand Up @@ -57,9 +57,9 @@ def test_get_deposit_address(account):

def test_signing(account):
with patch.object(account, "_sign", return_value="mock_signature") as mock_sign:
_, headers = account.get_balances(window=10000)
request_config = account.get_balances(window=10000)
mock_sign.assert_called_once()
assert headers["X-Signature"] == "mock_signature"
assert request_config.headers["X-Signature"] == "mock_signature"


def test_withdrawal(account):
Expand All @@ -80,5 +80,5 @@ def test_withdrawal(account):
window=10000,
)
assert request_config.url == "https://api.backpack.exchange/wapi/v1/capital/withdrawals"
assert request_config.params["address"] == "1BitcoinAddress"
assert request_config.params["blockchain"] == "Bitcoin"
assert request_config.data["address"] == "1BitcoinAddress"
assert request_config.data["blockchain"] == "Bitcoin"

0 comments on commit 959cfc7

Please sign in to comment.