Skip to content

Commit 9e2f643

Browse files
committed
refactor(tests): replace pytest.fail with pytest.xfail
Updated the `governance_poll_available` fixture to use `pytest.xfail` instead of `pytest.fail` for better handling of unavailable poll commands. This ensures tests are marked as expected failures rather than hard failures.
1 parent e74e72a commit 9e2f643

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

cardano_node_tests/tests/test_governance.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ class TestPoll:
3636
@pytest.fixture(scope="class")
3737
def governance_poll_available(self) -> None:
3838
if not clusterlib_utils.cli_has("compatible babbage governance create-poll"):
39-
pytest.fail(
39+
pytest.xfail(
4040
"The `cardano-cli compatible babbage governance` poll commands are not available."
4141
)
4242

0 commit comments

Comments
 (0)