Skip to content

Commit

Permalink
fix unit tests
Browse files Browse the repository at this point in the history
  • Loading branch information
popenta committed Oct 3, 2023
1 parent 8cf6e06 commit 8c35561
Showing 1 changed file with 8 additions and 6 deletions.
14 changes: 8 additions & 6 deletions multiversx_sdk_cli/tests/test_cli_wallet.py
Original file line number Diff line number Diff line change
Expand Up @@ -269,10 +269,11 @@ def test_verify_previously_signed_message(capsys: Any):
"--signature",
signature
])
out = _read_stdout(capsys)

assert False if return_code else True
assert """The message "test" was signed by erd1qyu5wthldzr8wx5c9ucg8kjagg0jfs53s8nr3zpz3hypefsdd8ssycr6th""" in out

out = _read_stdout(capsys)
text = """The message "test" was signed by erd1qyu5wthldzr8wx5c9ucg8kjagg0jfs53s8nr3zpz3hypefsdd8ssycr6th""".split()
assert all(word in out for word in text)


def test_verify_not_signed_message(capsys: Any):
Expand All @@ -290,10 +291,11 @@ def test_verify_not_signed_message(capsys: Any):
"--signature",
signature
])
out = _read_stdout(capsys)

assert False if return_code else True
assert """The message "this message is not signed" was NOT signed by erd1qyu5wthldzr8wx5c9ucg8kjagg0jfs53s8nr3zpz3hypefsdd8ssycr6th""" in out

out = _read_stdout(capsys)
text = """The message "this message is not signed" was NOT signed by erd1qyu5wthldzr8wx5c9ucg8kjagg0jfs53s8nr3zpz3hypefsdd8ssycr6th""".split()
assert all(word in out for word in text)


def _read_stdout_mnemonic(capsys: Any) -> str:
Expand Down

0 comments on commit 8c35561

Please sign in to comment.