From 5913c55864f376b9b8779c1c927d7a92c005f4d9 Mon Sep 17 00:00:00 2001 From: Julian Weigt Date: Thu, 11 Aug 2016 20:41:02 +0200 Subject: [PATCH] Fixed syntax and improved test --- tests/end2end/data/hints/short_dict.html | 9 +++------ tests/end2end/test_hints_html.py | 9 ++++++--- 2 files changed, 9 insertions(+), 9 deletions(-) diff --git a/tests/end2end/data/hints/short_dict.html b/tests/end2end/data/hints/short_dict.html index ced3e2eb2..9c2140315 100644 --- a/tests/end2end/data/hints/short_dict.html +++ b/tests/end2end/data/hints/short_dict.html @@ -1,16 +1,13 @@ - - - Many links + Many links 1 - 2 - 3 - 4 + 2 + 3 diff --git a/tests/end2end/test_hints_html.py b/tests/end2end/test_hints_html.py index a19b6e3d6..ef2e4f725 100644 --- a/tests/end2end/test_hints_html.py +++ b/tests/end2end/test_hints_html.py @@ -114,11 +114,12 @@ def test_word_hints_issue1393(quteproc, tmpdir): quteproc.send_cmd(':follow-hint {}'.format(hint)) quteproc.wait_for_load_finished('data/{}'.format(target)) -def test_short_dict(quteproc,tmpdir): + +def test_short_dict(quteproc, tmpdir): dict_file = tmpdir / 'dict' dict_file.write(textwrap.dedent(""" - a - b + worda + wordb """)) quteproc.set_setting('hints', 'mode', 'word') quteproc.set_setting('hints', 'dictionary', str(dict_file)) @@ -127,3 +128,5 @@ def test_short_dict(quteproc,tmpdir): line = quteproc.wait_for(message='Not enough words in the dictionary.') line.expected = True quteproc.wait_for(message='hints: *', category='hints') + quteproc.send_cmd(':follow-hint d') + quteproc.wait_for_load_finished('data/hello3.txt')