From 89fcd32a20c6803a3260aa32096294975c2b3bc1 Mon Sep 17 00:00:00 2001 From: Michael Droettboom Date: Thu, 7 Feb 2019 13:15:40 -0800 Subject: [PATCH] Apply suggestions from code review Co-Authored-By: jstafford --- test/conftest.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/test/conftest.py b/test/conftest.py index cf96e6712..85426db84 100644 --- a/test/conftest.py +++ b/test/conftest.py @@ -143,7 +143,7 @@ class SeleniumWrapper: catch (error) {{ console.log(error.stack); throw error; }}""" return self.driver.execute_script(catch) - def initWebWorker(self): + def setup_webworker(self): hostname = self.server_hostname port = self.server_port url = f'http://{hostname}:{port}/webworker_dev.js' @@ -173,7 +173,7 @@ class SeleniumWrapper: def run_webworker(self, code): from selenium.common.exceptions import TimeoutException - self.initWebWorker() + self.setup_webworker() if isinstance(code, str) and code.startswith('\n'): # we have a multiline string, fix indentation code = textwrap.dedent(code)