Skip to content

Commit

Permalink
test: mv test
Browse files Browse the repository at this point in the history
  • Loading branch information
antazoey committed Oct 25, 2024
1 parent 8de8d6c commit ac8da35
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 13 deletions.
14 changes: 14 additions & 0 deletions tests/functional/geth/test_network_manager.py
Original file line number Diff line number Diff line change
Expand Up @@ -37,3 +37,17 @@ def test_fork_upstream_provider(networks, mock_geth_sepolia, geth_provider, mock
geth_provider.provider_settings["uri"] = orig
else:
del geth_provider.provider_settings["uri"]


@geth_process_test
@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(connection_str) as moon_provider:
assert moon_provider.network.name == "moonriver"
assert moon_provider.network.ecosystem.name == "moonbeam"
13 changes: 0 additions & 13 deletions tests/functional/test_network_manager.py
Original file line number Diff line number Diff line change
Expand Up @@ -239,19 +239,6 @@ def test_parse_network_choice_multiple_contexts(
assert eth_tester_provider.make_request("eth_chainId") == DEFAULT_TEST_CHAIN_ID


@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(connection_str) as moon_provider:
assert moon_provider.network.name == "moonriver"
assert moon_provider.network.ecosystem.name == "moonbeam"


def test_getattr_ecosystem_with_hyphenated_name(networks, ethereum):
networks.ecosystems["hyphen-in-name"] = networks.ecosystems["ethereum"]
assert networks.hyphen_in_name # Make sure does not raise AttributeError
Expand Down

0 comments on commit ac8da35

Please sign in to comment.