simplify vars
This commit is contained in:
parent
827827b962
commit
6cfca22168
1 changed files with 6 additions and 6 deletions
|
|
@ -21,9 +21,9 @@ def admin_context(context: BrowserContext, DIR: DirManager) -> BrowserContext:
|
||||||
@pytest.fixture
|
@pytest.fixture
|
||||||
def authentik_admin_page(admin_context: BrowserContext, DIR: DirManager) -> Page:
|
def authentik_admin_page(admin_context: BrowserContext, DIR: DirManager) -> Page:
|
||||||
page = admin_context.new_page()
|
page = admin_context.new_page()
|
||||||
authentik_env_file = DIR.ENV_FILES / "authentik"
|
env_file = DIR.ENV_FILES / "authentik"
|
||||||
authentik_config: dict[str, str] = dotenv_values(authentik_env_file) # type: ignore
|
config: dict[str, str] = dotenv_values(env_file) # type: ignore
|
||||||
url = "https://" + authentik_config["DOMAIN"]
|
url = "https://" + config["DOMAIN"]
|
||||||
page.goto(url)
|
page.goto(url)
|
||||||
return page
|
return page
|
||||||
|
|
||||||
|
|
@ -40,8 +40,8 @@ def user_context(context: BrowserContext, DIR: DirManager) -> BrowserContext:
|
||||||
@pytest.fixture
|
@pytest.fixture
|
||||||
def authentik_user_page(user_context: BrowserContext, DIR: DirManager) -> Page:
|
def authentik_user_page(user_context: BrowserContext, DIR: DirManager) -> Page:
|
||||||
page = user_context.new_page()
|
page = user_context.new_page()
|
||||||
authentik_env_file = DIR.ENV_FILES / "authentik"
|
env_file = DIR.ENV_FILES / "authentik"
|
||||||
authentik_config: dict[str, str] = dotenv_values(authentik_env_file) # type: ignore
|
config: dict[str, str] = dotenv_values(env_file) # type: ignore
|
||||||
url = "https://" + authentik_config["DOMAIN"]
|
url = "https://" + config["DOMAIN"]
|
||||||
page.goto(url)
|
page.goto(url)
|
||||||
return page
|
return page
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue