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 add21a694e - Show all commits

View file

@ -8,7 +8,7 @@ from src.dirmanager import DirManager
@pytest.fixture
def admin_context(context: BrowserContext, DIR: DirManager) -> BrowserContext:
def authentik_admin_context(context: BrowserContext, DIR: DirManager) -> BrowserContext:
state_file = DIR.STATES / "authentik_admin_state.json"
storage_state = json.loads(state_file.read_bytes())
context.add_cookies(storage_state["cookies"])
@ -26,7 +26,7 @@ def authentik_admin_page(admin_context: BrowserContext, DIR: DirManager) -> Page
@pytest.fixture
def user_context(context: BrowserContext, DIR: DirManager) -> BrowserContext:
def authentik_user_context(context: BrowserContext, DIR: DirManager) -> BrowserContext:
state_file = DIR.STATES / "authentik_user_state.json"
storage_state = json.loads(state_file.read_bytes())
context.add_cookies(storage_state["cookies"])