Skip to content

Commit

Permalink
linter fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
bandophahita committed Feb 1, 2024
1 parent 8ee30ba commit 2082081
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
3 changes: 2 additions & 1 deletion setup_selenium/selenium_module.py
Original file line number Diff line number Diff line change
@@ -1,11 +1,12 @@
"""Setup selenium for testing"""

from __future__ import annotations

import errno
import logging
import os as os
from enum import Enum
from typing import TYPE_CHECKING, Union, Optional
from typing import TYPE_CHECKING, Optional, Union

from selenium import webdriver
from selenium.common.exceptions import NoSuchWindowException, WebDriverException
Expand Down
5 changes: 4 additions & 1 deletion tests/test_setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -203,18 +203,21 @@ def test_create_firefox_wrong_options() -> None:
Browser.FIREFOX, options=SetupSelenium.chrome_options()
)


def test_create_chrome_wrong_options() -> None:
with pytest.raises(AssertionError):
SetupSelenium.create_driver(
Browser.CHROME, options=SetupSelenium.edge_options()
)



def test_create_edge_wrong_options() -> None:
with pytest.raises(AssertionError):
SetupSelenium.create_driver(
Browser.EDGE, options=SetupSelenium.firefox_options()
)


@pytest.fixture()
def create_logger() -> logging.Logger:
"""Create a logger."""
Expand Down

0 comments on commit 2082081

Please sign in to comment.