From 06229fffd0401bb052dfbc33850bddd2080b19f8 Mon Sep 17 00:00:00 2001 From: gruhn Date: Sun, 1 Dec 2024 22:32:54 +0100 Subject: [PATCH] fix: typo --- test/test_web.py | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/test/test_web.py b/test/test_web.py index 5df2768..1020e5c 100644 --- a/test/test_web.py +++ b/test/test_web.py @@ -58,7 +58,7 @@ class AbstractWebTest(unittest.TestCase): driver: webdriver.Firefox def setUp(self) -> None: - if not self.resue_selenium_web_driver(): + if not self.reuse_selenium_web_driver(): opts = selenium.webdriver.firefox.options.Options() opts.add_argument("-headless") self.driver = webdriver.Firefox(options=opts) @@ -68,13 +68,13 @@ def setUp(self) -> None: @classmethod def setUpClass(cls) -> None: - if cls.resue_selenium_web_driver(): + if cls.reuse_selenium_web_driver(): opts = selenium.webdriver.firefox.options.Options() opts.add_argument("-headless") cls.driver = webdriver.Firefox(options=opts) def tearDown(self) -> None: - if not self.resue_selenium_web_driver(): + if not self.reuse_selenium_web_driver(): self.driver.close() self.driver.quit() @@ -82,12 +82,12 @@ def tearDown(self) -> None: @classmethod def tearDownClass(cls) -> None: - if cls.resue_selenium_web_driver(): + if cls.reuse_selenium_web_driver(): cls.driver.close() cls.driver.quit() @staticmethod - def resue_selenium_web_driver() -> bool: + def reuse_selenium_web_driver() -> bool: """Determine whether the selenium driver shall be shared between all consecutive tests in this class. Checks whether the environment variable SHC_TEST_REUSE_WEB_DRIVER is set.