Skip to content

Commit

Permalink
fix: typo
Browse files Browse the repository at this point in the history
  • Loading branch information
jo47011 committed Dec 1, 2024
1 parent 5b18494 commit 06229ff
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions test/test_web.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand All @@ -68,26 +68,26 @@ 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()

self.server_runner.stop()

@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.
Expand Down

0 comments on commit 06229ff

Please sign in to comment.