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"])