add global URL fixture
This commit is contained in:
parent
164503f408
commit
5220336eff
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 pytest import Parser
|
||||||
|
|
||||||
from src.dir_manager import DirManager
|
from src.dir_manager import DirManager
|
||||||
|
from src.utils import BaseUrl
|
||||||
|
|
||||||
# global timeout and LOCALE
|
# global timeout and LOCALE
|
||||||
LOCALE = {"Accept-Language": "de_DE"}
|
LOCALE = {"Accept-Language": "de_DE"}
|
||||||
|
|
@ -73,6 +74,11 @@ def dotenv_config(request) -> dict[str, str]:
|
||||||
return dotenv_values(dotenv_path) # type: ignore
|
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")
|
@pytest.fixture(scope="session")
|
||||||
def imap_ssl_email_client() -> None:
|
def imap_ssl_email_client() -> None:
|
||||||
assert os.environ["IMAP_HOST"]
|
assert os.environ["IMAP_HOST"]
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue