Skip to content

Commit 7ed3393

Browse files
authored
Merge pull request #2777 from IntersectMBO/rm_unneeded_cli_checks
refactor(tests): remove unneeded fixtures in test files
2 parents b0a916f + f4437b4 commit 7ed3393

File tree

2 files changed

+0
-16
lines changed

2 files changed

+0
-16
lines changed

cardano_node_tests/tests/test_blocks.py

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -34,17 +34,11 @@
3434
class TestLeadershipSchedule:
3535
"""Tests for cardano-cli leadership-schedule."""
3636

37-
@pytest.fixture(scope="class")
38-
def skip_leadership_schedule(self):
39-
if not clusterlib_utils.cli_has("query leadership-schedule"):
40-
pytest.skip("The `cardano-cli query leadership-schedule` command is not available.")
41-
4237
@allure.link(helpers.get_vcs_link())
4338
@pytest.mark.needs_dbsync
4439
@pytest.mark.parametrize("for_epoch", ("current", "next"))
4540
def test_pool_blocks(
4641
self,
47-
skip_leadership_schedule: None, # noqa: ARG002
4842
cluster_manager: cluster_management.ClusterManager,
4943
cluster_use_pool: tp.Tuple[clusterlib.ClusterLib, str],
5044
for_epoch: str,
@@ -143,7 +137,6 @@ def test_pool_blocks(
143137
@allure.link(helpers.get_vcs_link())
144138
def test_unstable_stake_distribution(
145139
self,
146-
skip_leadership_schedule: None, # noqa: ARG002
147140
cluster_manager: cluster_management.ClusterManager,
148141
cluster: clusterlib.ClusterLib,
149142
):

cardano_node_tests/tests/tests_conway/test_hardfork.py

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -43,19 +43,10 @@ def pool_user_lg(
4343
class TestHardfork:
4444
"""Tests for hard-fork."""
4545

46-
@pytest.fixture(scope="class")
47-
def skip_hf_command(self):
48-
if not clusterlib_utils.cli_has("conway governance action create-hardfork"):
49-
pytest.skip(
50-
"The `cardano-cli conway governance action create-hardfork` command "
51-
"is not available."
52-
)
53-
5446
@allure.link(helpers.get_vcs_link())
5547
@pytest.mark.long
5648
def test_hardfork(
5749
self,
58-
skip_hf_command: None, # noqa: ARG002
5950
cluster_manager: cluster_management.ClusterManager,
6051
cluster_lock_governance: governance_utils.GovClusterT,
6152
pool_user_lg: clusterlib.PoolUser,

0 commit comments

Comments
 (0)