Compare commits
No commits in common. "93264da3d9a5c6093c9da0922677eddb36247227" and "0fd1592036f61b8a8e60d113e3659b1e37ceb752" have entirely different histories.
93264da3d9
...
0fd1592036
|
@ -1,8 +1,6 @@
|
|||
import pytest
|
||||
import sqlite3
|
||||
import time
|
||||
from selenium import webdriver
|
||||
from pathlib import Path
|
||||
|
||||
|
||||
@pytest.fixture
|
||||
|
@ -25,7 +23,7 @@ def PASSWORD():
|
|||
return 'l0ve1t'
|
||||
|
||||
|
||||
@pytest.fixture
|
||||
@pytest.fixture(autouse=True)
|
||||
def restore_sqlite_database():
|
||||
'''
|
||||
Automatically restore SQLite database file app/db/wordfreqapp.db
|
||||
|
@ -37,9 +35,3 @@ def restore_sqlite_database():
|
|||
con.executescript('DROP TABLE IF EXISTS article;')
|
||||
con.executescript(open('../static/wordfreqapp.sql', encoding='utf8').read())
|
||||
con.close()
|
||||
|
||||
|
||||
@pytest.fixture(autouse=True)
|
||||
def restart_englishpal(restore_sqlite_database):
|
||||
(Path(__file__).parent / '../main.py').touch()
|
||||
time.sleep(1)
|
||||
|
|
Loading…
Reference in New Issue