Skip to content
Snippets Groups Projects
Commit 5dac2ae0 authored by matograine's avatar matograine Committed by Moul
Browse files

[test] #416 modify tests for idty_tools to match new behavior.

parent 84a3d7b7
No related branches found
No related tags found
1 merge request!170#89: Implement revocation command
......@@ -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)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment