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

Fix test: expected help output.

The changed test could fail if the wordlist dir was relatively short.
parent 6cafa4c1
No related branches found
No related tags found
No related merge requests found
......@@ -21,5 +21,4 @@ optional arguments:
`realdice', `system'. Default: system
--version output version information and exit.
Wordlists are stored in
<PATH-TO-WORDLISTS-DIR>
Wordlists are stored in <WORDLISTS-DIR>
......@@ -206,7 +206,8 @@ class TestDicewareModule(object):
os.path.dirname(__file__), 'exp_help_output.txt')
with open(expected_path, 'r') as fd:
expected_output = fd.read()
out = out.replace(WORDLISTS_DIR, "<PATH-TO-WORDLISTS-DIR>")
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