diff options
author | Hui Lan <lanhui@zjnu.edu.cn> | 2021-02-06 23:12:06 +0800 |
---|---|---|
committer | Hui Lan <lanhui@zjnu.edu.cn> | 2021-02-06 23:12:06 +0800 |
commit | 9c324e781fbac2c3d58de3fbe8dd358b1eb5f211 (patch) | |
tree | 8841c708b084e84c109c876a1ab18328db66d39a /app | |
parent | 66ee3d5f0a0965e32307cba45e621eb02e332c52 (diff) |
app/test/test_*.py: quit driver after use.
Diffstat (limited to 'app')
-rw-r--r-- | app/test/test_login.py | 2 | ||||
-rw-r--r-- | app/test/test_signup.py | 2 |
2 files changed, 3 insertions, 1 deletions
diff --git a/app/test/test_login.py b/app/test/test_login.py index 1058946..17db772 100644 --- a/app/test/test_login.py +++ b/app/test/test_login.py @@ -57,4 +57,4 @@ def test_login(): driver.save_screenshot('./app/test/test_login_pic4.png') assert 'EnglishPal Study Room for ' + uname in driver.title - + driver.quit() diff --git a/app/test/test_signup.py b/app/test/test_signup.py index 25536a3..fc8ec4a 100644 --- a/app/test/test_signup.py +++ b/app/test/test_signup.py @@ -37,4 +37,6 @@ def test_signup(): assert '恭喜,你已成功注册' in driver.page_source assert uname in driver.page_source + driver.quit() + |