Skip to content

Commit

Permalink
tests: fix more linting lordie
Browse files Browse the repository at this point in the history
  • Loading branch information
BaseInfinity committed Oct 25, 2023
1 parent 7529654 commit 5f403f5
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 12 deletions.
17 changes: 7 additions & 10 deletions chromegpt/tools/selenium.py
Original file line number Diff line number Diff line change
@@ -1,13 +1,4 @@
"""Tool that calls Selenium."""
from selenium.webdriver.support.ui import WebDriverWait
from selenium.webdriver.support import expected_conditions as EC
from selenium.common.exceptions import StaleElementReferenceException

from selenium.webdriver.chrome.options import Options
from selenium.webdriver.common.by import By
from selenium.webdriver.common.keys import Keys
from selenium.webdriver.common.action_chains import ActionChains

import json
import re
import time
Expand All @@ -19,14 +10,20 @@
from pydantic import BaseModel, Field
from selenium import webdriver
from selenium.common.exceptions import (
StaleElementReferenceException,
WebDriverException,
)
from selenium.webdriver.chrome.options import Options
from selenium.webdriver.common.action_chains import ActionChains
from selenium.webdriver.common.by import By
from selenium.webdriver.common.keys import Keys
from selenium.webdriver.support import expected_conditions as EC
from selenium.webdriver.support.ui import WebDriverWait

from chromegpt.tools.utils import (
find_parent_element_text,
get_all_text_elements,
prettify_text,
truncate_string_from_last_occurrence,
)


Expand Down
2 changes: 0 additions & 2 deletions chromegpt/tools/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,6 @@
from selenium.webdriver.common.by import By
from selenium.webdriver.remote.webdriver import WebDriver as RemoteWebDriver
from selenium.webdriver.remote.webelement import WebElement
from selenium import webdriver

from unidecode import unidecode


Expand Down

0 comments on commit 5f403f5

Please sign in to comment.