Skip to content

Commit

Permalink
test: handle ci
Browse files Browse the repository at this point in the history
  • Loading branch information
antazoey committed Oct 5, 2023
1 parent 5c7a6d4 commit e98f608
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions tests/functional/test_network_api.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,9 @@


def test_get_provider_when_not_found(ethereum):
network = ethereum.get_network("goerli-fork")
expected = (
"No provider named 'test' in network 'goerli-fork' in ecosystem 'ethereum'. Options:.*"
)
name = "goerli-fork"
network = ethereum.get_network(name)
expected = f"No provider named 'test' in network '{name}' in ecosystem 'ethereum'.*"
with pytest.raises(ProviderNotFoundError, match=expected):
network.get_provider("test")

Expand Down

0 comments on commit e98f608

Please sign in to comment.