Compare commits
No commits in common. "bd5f8f63f5dc03d5ef8cbef522028b0b3d1e5050" and "9aa718b2368a24c2fc17d9e99f33f9d806072fce" have entirely different histories.
bd5f8f63f5
...
9aa718b236
|
@ -150,8 +150,6 @@ Run English Pal first, then run the test using pytest as follows: pytest --html=
|
|||
|
||||
The above command will generate a HTML report file pytest_report.html after finishing executing test_add_word.py. Note: you need to install pytest-html package first: pip install pytest-html.
|
||||
|
||||
You may also want to use [webdriver-manager](https://pypi.org/project/webdriver-manager/) from PyPI, so that you can avoid tediously installing a web driver executable manually. However, my experience shows that webdriver-manager is too slow. For example, it took me 16 minutes to run 9 tests, while with the pre-installed web driver executable, it took less than 2 minutes.
|
||||
|
||||
## TODO
|
||||
|
||||
|
||||
|
|
|
@ -2,7 +2,6 @@ import pytest
|
|||
import sqlite3
|
||||
import time
|
||||
from selenium import webdriver
|
||||
|
||||
from pathlib import Path
|
||||
|
||||
@pytest.fixture
|
||||
|
@ -12,7 +11,7 @@ def URL():
|
|||
|
||||
@pytest.fixture
|
||||
def driver():
|
||||
return webdriver.Edge() # follow the "End-to-end testing" section in README.md to install the web driver executable
|
||||
return webdriver.Edge() # uncomment this line if you wish to run the test on your laptop
|
||||
|
||||
|
||||
@pytest.fixture
|
||||
|
|
|
@ -53,6 +53,5 @@ def test_bug553_LinShan(test_input,expected, driver, URL):
|
|||
# 输出异常信息
|
||||
logging.error(e)
|
||||
# 关闭浏览器
|
||||
driver.quit()
|
||||
finally:
|
||||
driver.quit()
|
||||
|
|
Loading…
Reference in New Issue