refactor for independent test dirs #7
1 changed files with 6 additions and 0 deletions
|
|
@ -15,6 +15,7 @@ from playwright.sync_api import BrowserContext, expect
|
|||
from pytest import Parser
|
||||
|
||||
from src.dir_manager import DirManager
|
||||
from src.utils import BaseUrl
|
||||
|
||||
# global timeout and LOCALE
|
||||
LOCALE = {"Accept-Language": "de_DE"}
|
||||
|
|
@ -73,6 +74,11 @@ def dotenv_config(request) -> dict[str, str]:
|
|||
return dotenv_values(dotenv_path) # type: ignore
|
||||
|
||||
|
||||
@pytest.fixture(scope="session", autouse=True)
|
||||
def URL(dotenv_config: dict[str, str]) -> BaseUrl:
|
||||
return BaseUrl(netloc=dotenv_config["DOMAIN"])
|
||||
|
||||
|
||||
@pytest.fixture(scope="session")
|
||||
def imap_ssl_email_client() -> None:
|
||||
assert os.environ["IMAP_HOST"]
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue