Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 0 additions & 8 deletions cardano_node_tests/tests/test_cli.py
Original file line number Diff line number Diff line change
Expand Up @@ -1028,18 +1028,11 @@ def _check_stake_snapshot( # noqa: C901
for p in cluster_management.Resources.ALL_POOLS
]
stake_snapshot = cluster_obj.g_query.get_stake_snapshot(all_stake_pools=True)
elif option == "total_stake":
stake_snapshot = cluster_obj.g_query.get_stake_snapshot()
else:
msg = f"Unknown option: {option}"
raise ValueError(msg)
except json.decoder.JSONDecodeError:
issues.node_3859.finish_test()
except clusterlib.CLIError as err:
err_str = str(err)
if "Missing" in err_str or "Invalid option" in err_str:
pytest.skip(f"The '{option}' scenario not available with this cardano-cli version.")
raise

expected_pool_ids_mapping = {p: helpers.decode_bech32(bech32=p) for p in expected_pool_ids}

Expand Down Expand Up @@ -1190,7 +1183,6 @@ def test_ledger_state(self, cluster: clusterlib.ClusterLib):
(
"single_pool",
"multiple_pools",
"total_stake",
pytest.param(
"all_pools",
marks=common.SKIPIF_ON_TESTNET,
Expand Down
Loading