diff --git a/tests/exp_help_output.txt b/tests/exp_help_output.txt index 517aa6e3a4e5fefcddbc392b6892ae3e0b5e6bd0..2bd85d0ef48e463db9f0920a60f3987dd2b46d13 100644 --- a/tests/exp_help_output.txt +++ b/tests/exp_help_output.txt @@ -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> diff --git a/tests/test_diceware.py b/tests/test_diceware.py index 548898e7ef1bf0a99e19a749879abb0d92747995..00783b90eeba0d6980654a32af9f1ccd75615fc5 100644 --- a/tests/test_diceware.py +++ b/tests/test_diceware.py @@ -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):