refactor: Implicitly use fixtures in conftest.py

Bug476-LiMengdie
AliasJeff 2024-04-11 17:09:12 +08:00
parent 93264da3d9
commit 4fe96cfc9c
1 changed files with 1 additions and 2 deletions

View File

@ -3,7 +3,6 @@ import string
from selenium.webdriver.common.by import By from selenium.webdriver.common.by import By
from selenium.webdriver.support.ui import WebDriverWait from selenium.webdriver.support.ui import WebDriverWait
from selenium.webdriver.support import expected_conditions as EC from selenium.webdriver.support import expected_conditions as EC
from conftest import driver, URL, UNAME, PASSWORD
def has_punctuation(s): def has_punctuation(s):
@ -53,4 +52,4 @@ def test_save_selected_word(driver, URL, UNAME, PASSWORD):
if __name__ == '__main__': if __name__ == '__main__':
test_save_selected_word(driver, URL, UNAME, PASSWORD) test_save_selected_word(driver, URL, UNAME, PASSWORD) # noqa: F821