Skip to content

Commit

Permalink
test: be meaner
Browse files Browse the repository at this point in the history
  • Loading branch information
antazoey committed Dec 11, 2024
1 parent 3273092 commit 594022a
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
1 change: 1 addition & 0 deletions tests/functional/test_contract_container.py
Original file line number Diff line number Diff line change
Expand Up @@ -190,3 +190,4 @@ def test_at_fetch_from_explorer_false(

# Clean up test.
eth_tester_provider.network.explorer = None
assert eth_tester_provider.network.explorer is None
5 changes: 4 additions & 1 deletion tests/functional/test_exceptions.py
Original file line number Diff line number Diff line change
Expand Up @@ -236,8 +236,11 @@ def test_local_network(self, eth_tester_provider):
for the local-network, as 99.9% of the time it is
confusing.
"""
eth_tester_provider.network.explorer = None # Ensure no explorer is set.
err = ContractNotFoundError(ZERO_ADDRESS, provider=eth_tester_provider)
assert str(err) == f"Failed to get contract type for address '{ZERO_ADDRESS}'."
actual = f"{err}"
expected = f"Failed to get contract type for address '{ZERO_ADDRESS}'."
assert actual == expected

def test_fork_network(self, mocker, mock_sepolia):
provider = mocker.MagicMock()
Expand Down

0 comments on commit 594022a

Please sign in to comment.