From 5fdfe6899c9715a2ca4f117fc1410a0cdb7da8fa Mon Sep 17 00:00:00 2001 From: matograine <matograine@zaclys.net> Date: Sat, 15 Jan 2022 15:37:47 +0100 Subject: [PATCH] [test] #416 modify tests for idty_tools to match new behavior. --- tests/test_idty_tools.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/tests/test_idty_tools.py b/tests/test_idty_tools.py index 3769eee9..5a8591da 100644 --- a/tests/test_idty_tools.py +++ b/tests/test_idty_tools.py @@ -33,6 +33,7 @@ from patched.idty_tools import ( ) from silkaj import idty_tools from silkaj.constants import ALL, PUBKEY_PATTERN +from silkaj.tui import display_pubkey_and_checksum ## used test identities @@ -351,7 +352,7 @@ def test_display_identity(idty, monkeypatch, capsys): None, None, [ - "Revocation document does not match any valid identity. Error: HTTP Error 404: Not Found TEST" + f"Revocation document does not match any valid identity.\nuid: {idty1.uid}\npubkey: {display_pubkey_and_checksum(idty1.pubkey)}" ], False, ), @@ -384,7 +385,7 @@ def test_check_many_identities( # identity does not exist if expected == [ - "Revocation document does not match any valid identity. Error: HTTP Error 404: Not Found TEST" + f"Revocation document does not match any valid identity.\nuid: {idty.uid}\npubkey: {display_pubkey_and_checksum(idty.pubkey)}" ]: with pytest.raises(SystemExit) as pytest_exit: result = idty_tools.check_many_identities(idty, doc_type) -- GitLab