new-features #5

Merged
dan merged 73 commits from wordpress-nextcloud into dev 2023-12-04 12:46:32 +01:00
Showing only changes of commit 6cfca22168 - Show all commits

View file

@ -21,9 +21,9 @@ def admin_context(context: BrowserContext, DIR: DirManager) -> BrowserContext:
@pytest.fixture
def authentik_admin_page(admin_context: BrowserContext, DIR: DirManager) -> Page:
page = admin_context.new_page()
authentik_env_file = DIR.ENV_FILES / "authentik"
authentik_config: dict[str, str] = dotenv_values(authentik_env_file) # type: ignore
url = "https://" + authentik_config["DOMAIN"]
env_file = DIR.ENV_FILES / "authentik"
config: dict[str, str] = dotenv_values(env_file) # type: ignore
url = "https://" + config["DOMAIN"]
page.goto(url)
return page
@ -40,8 +40,8 @@ def user_context(context: BrowserContext, DIR: DirManager) -> BrowserContext:
@pytest.fixture
def authentik_user_page(user_context: BrowserContext, DIR: DirManager) -> Page:
page = user_context.new_page()
authentik_env_file = DIR.ENV_FILES / "authentik"
authentik_config: dict[str, str] = dotenv_values(authentik_env_file) # type: ignore
url = "https://" + authentik_config["DOMAIN"]
env_file = DIR.ENV_FILES / "authentik"
config: dict[str, str] = dotenv_values(env_file) # type: ignore
url = "https://" + config["DOMAIN"]
page.goto(url)
return page