Skip to content

Commit

Permalink
test: show works even with just URL
Browse files Browse the repository at this point in the history
  • Loading branch information
antazoey committed Oct 25, 2024
1 parent 69cd7b9 commit bf8e066
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions tests/functional/test_network_manager.py
Original file line number Diff line number Diff line change
Expand Up @@ -239,12 +239,15 @@ def test_parse_network_choice_multiple_contexts(
assert eth_tester_provider.make_request("eth_chainId") == DEFAULT_TEST_CHAIN_ID


def test_parse_network_choice_evmchains(networks):
@pytest.mark.parametrize(
"connection_str", ("moonbeam:moonriver", "https://moonriver.api.onfinality.io/public")
)
def test_parse_network_choice_evmchains(networks, connection_str):
"""
Show we can (without having a plugin installed) connect to a network
that evm-chains knows about.
"""
with networks.parse_network_choice("moonbeam:moonriver") as moon_provider:
with networks.parse_network_choice(connection_str) as moon_provider:
assert moon_provider.network.name == "moonriver"
assert moon_provider.network.ecosystem.name == "moonbeam"

Expand Down

0 comments on commit bf8e066

Please sign in to comment.