From add21a694e5c380869ab14b535f78358bb7bf7c8 Mon Sep 17 00:00:00 2001 From: Daniel Date: Thu, 30 Nov 2023 18:42:15 +0100 Subject: [PATCH] rename more authentik fixtures --- src/tests_authentik/fixtures_authentik.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/tests_authentik/fixtures_authentik.py b/src/tests_authentik/fixtures_authentik.py index 836f3ca..94af38f 100644 --- a/src/tests_authentik/fixtures_authentik.py +++ b/src/tests_authentik/fixtures_authentik.py @@ -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"])