Skip to content

Commit 4e14809

Browse files
committed
fix(tests): correct order of error message assertions
Reordered the error message assertions in `test_cli.py` to ensure the "Invalid key" error is checked first. This improves the clarity and accuracy of the test failure messages.
1 parent 86abb73 commit 4e14809

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

cardano_node_tests/tests/test_cli.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -711,8 +711,8 @@ def test_non_extended_key_error(self, cluster: clusterlib.ClusterLib):
711711

712712
err_str = str(excinfo.value)
713713
assert (
714-
"TextEnvelope type error: Expected one of:" in err_str
715-
or "key non-extended-key Error: Invalid key." in err_str
714+
"Error: Invalid key." in err_str
715+
or "TextEnvelope type error: Expected one of:" in err_str
716716
), err_str
717717

718718

0 commit comments

Comments
 (0)