Skip to content

Commit

Permalink
Added mypy fixes for functional tests
Browse files Browse the repository at this point in the history
  • Loading branch information
zenmonkeykstop committed Jan 5, 2024
1 parent 5bc45e4 commit 9fdb49b
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -119,6 +119,7 @@ def cookie_string_from_selenium_cookies(
return result

cks = cookie_string_from_selenium_cookies(self.driver.get_cookies())
assert isinstance(file_url, str)
raw_content = self._download_content_at_url(file_url, cks)

decryption_result = utils.decrypt_as_journalist(raw_content)
Expand Down
4 changes: 2 additions & 2 deletions securedrop/tests/functional/conftest.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,14 +22,14 @@

# Function-scoped so that tests can be run in parallel if needed
@pytest.fixture()
def firefox_web_driver() -> WebDriver:
def firefox_web_driver() -> WebDriver: # type: ignore
with get_web_driver(web_driver_type=WebDriverTypeEnum.FIREFOX) as web_driver:
yield web_driver


# Function-scoped so that tests can be run in parallel if needed
@pytest.fixture()
def tor_browser_web_driver() -> WebDriver:
def tor_browser_web_driver() -> WebDriver: # type: ignore
with get_web_driver(web_driver_type=WebDriverTypeEnum.TOR_BROWSER) as web_driver:
yield web_driver

Expand Down

0 comments on commit 9fdb49b

Please sign in to comment.