From 9a02dc174d5283fee9aefb9a6ffdabf605cfb014 Mon Sep 17 00:00:00 2001 From: Florian Bruhin Date: Thu, 18 Feb 2016 07:34:35 +0100 Subject: [PATCH] bdd: use quteproc.wait_for_load_finished. Why duplicate that logic? --- tests/integration/features/conftest.py | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/tests/integration/features/conftest.py b/tests/integration/features/conftest.py index 501e1940d..9c47d1337 100644 --- a/tests/integration/features/conftest.py +++ b/tests/integration/features/conftest.py @@ -213,11 +213,7 @@ def path_should_be_loaded(quteproc, path): page could be loaded from local cache. """ url = quteproc.path_to_url(path) - pattern = re.compile( - r"load status for : LoadStatus\.success".format( - url=re.escape(url))) - quteproc.wait_for(message=pattern) + quteproc.wait_for_load_finished(path) @bdd.then(bdd.parsers.parse("{path} should be requested"))