Update pattern for completion tests

This commit is contained in:
Florian Bruhin 2016-11-24 07:33:50 +01:00
parent 32cc6bea1d
commit 8ac16c0c4c

View File

@ -25,5 +25,5 @@ bdd.scenarios('completion.feature')
@bdd.then(bdd.parsers.parse("the completion model should be {model}")) @bdd.then(bdd.parsers.parse("the completion model should be {model}"))
def check_model(quteproc, model): def check_model(quteproc, model):
"""Make sure the completion model was set to something.""" """Make sure the completion model was set to something."""
pattern = "New completion [^:]*: {}".format(model) pattern = "Setting completion model to {} with pattern *".format(model)
quteproc.wait_for(message=re.compile(pattern)) quteproc.wait_for(message=pattern)