Skip to content
Snippets Groups Projects
Commit 86379bf4 authored by ulif's avatar ulif
Browse files

Harden manpage test.

The manpage test failed when tests were run in a long path. The help
output then led to an extra line break which made comaparisons quite
cumbersome.
parent 4c13f1af
No related branches found
No related tags found
No related merge requests found
......@@ -279,8 +279,9 @@ class TestDicewareModule(object):
with open(expected_path, 'r') as fd:
expected_output = fd.read()
wordlists_dir = get_wordlists_dir()
expected_output = expected_output.replace("\n", "")
out = expected_output.replace("\n", "")
out = out.replace(wordlists_dir, "<WORDLISTS-DIR>")
out = out.replace("\n<WORDLISTS-DIR>", " <WORDLISTS-DIR>")
assert out == expected_output
def test_main_version(self, argv_handler, capsys):
......
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