From 8ac16c0c4c156d8a2489fd039cb91077c71427da Mon Sep 17 00:00:00 2001 From: Florian Bruhin Date: Thu, 24 Nov 2016 07:33:50 +0100 Subject: [PATCH] Update pattern for completion tests --- tests/end2end/features/test_completion_bdd.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/end2end/features/test_completion_bdd.py b/tests/end2end/features/test_completion_bdd.py index c8470441a..8927797ca 100644 --- a/tests/end2end/features/test_completion_bdd.py +++ b/tests/end2end/features/test_completion_bdd.py @@ -25,5 +25,5 @@ bdd.scenarios('completion.feature') @bdd.then(bdd.parsers.parse("the completion model should be {model}")) def check_model(quteproc, model): """Make sure the completion model was set to something.""" - pattern = "New completion [^:]*: {}".format(model) - quteproc.wait_for(message=re.compile(pattern)) + pattern = "Setting completion model to {} with pattern *".format(model) + quteproc.wait_for(message=pattern)