Skip to content

Commit

Permalink
Fix all test errors
Browse files Browse the repository at this point in the history
  • Loading branch information
CBoYXD committed Feb 26, 2025
1 parent 3969177 commit 956d74a
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions apps/shared/tests/test_starknet_client.py
Original file line number Diff line number Diff line change
Expand Up @@ -30,12 +30,12 @@ def test_initialization(self):
"""Test client initialization"""
# Test default URL
StarknetClient()
self.mock_network_class.assert_called_with("https://starknet-mainnet.public.blastapi.io")
self.mock_network_class.assert_called_with(node_url="https://starknet-mainnet.public.blastapi.io")

# Test custom URL
self.mock_network_class.reset_mock()
StarknetClient(TEST_NODE_URL)
self.mock_network_class.assert_called_with(TEST_NODE_URL)
self.mock_network_class.assert_called_with(node_url=TEST_NODE_URL)

@pytest.mark.asyncio
async def test_func_call(self):
Expand All @@ -54,7 +54,7 @@ async def test_func_call(self):
selector=get_selector_from_name("test_function"),
calldata=[1, 2, 3]
)
self.mock_network.call_contract.assert_called_with(expected_call)
self.mock_network.call_contract.assert_called_with(expected_call, block_hash='latest')
assert result == [100]

@pytest.mark.asyncio
Expand Down

0 comments on commit 956d74a

Please sign in to comment.