Skip to content
Snippets Groups Projects
Commit 426bdb0d authored by Sébastien DA ROCHA's avatar Sébastien DA ROCHA Committed by Moul
Browse files

[enh] add test for wot command

parent a7cc0ade
No related branches found
No related tags found
No related merge requests found
......@@ -2,7 +2,18 @@ from subprocess import check_output
def test_info():
"""tests './silkaj info' returns a number of members"""
"""tests 'silkaj info' returns a number of members"""
output = check_output(["silkaj", "info"])
assert "Number of members" in output.decode()
def test_wot():
"""tests 'silkaj wot' returns a number of members"""
output = check_output(["silkaj", "wot", "moul"]).decode()
assert "moul (GfKER…) from block #0-E3B0C44298FC1…" in output
assert "received_expire" in output
assert "received" in output
assert "sent" in output
assert "sent_expire" in output
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