rename more authentik fixtures

This commit is contained in:
Daniel 2023-11-30 18:42:15 +01:00
parent 5d3743962f
commit add21a694e

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