0
0
Fork 0
EnglishPal/app/test/conftest.py

17 lines
270 B
Python
Raw Normal View History

2021-12-03 09:08:45 +08:00
import pytest
import sqlite3
import time
2021-12-03 09:08:45 +08:00
from selenium import webdriver
2024-04-21 15:31:39 +08:00
from pathlib import Path
2021-12-03 09:08:45 +08:00
@pytest.fixture
def URL():
return 'http://127.0.0.1:5000' # URL of the program
@pytest.fixture
def driver():
2024-05-20 21:25:51 +08:00
my_driver = webdriver.Chrome()
2021-12-03 09:08:45 +08:00
return my_driver