From 2ec7c6fd30f7826c1f77479fc1c25c64e663a65f Mon Sep 17 00:00:00 2001 From: Daniel Date: Mon, 27 Nov 2023 14:29:19 +0100 Subject: [PATCH] fixup --- src/tests_authentik/fixtures_authentik.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/tests_authentik/fixtures_authentik.py b/src/tests_authentik/fixtures_authentik.py index 3d26907..bcd106d 100644 --- a/src/tests_authentik/fixtures_authentik.py +++ b/src/tests_authentik/fixtures_authentik.py @@ -1,5 +1,4 @@ import json -from pathlib import Path import pytest from playwright.sync_api import BrowserContext @@ -16,7 +15,7 @@ def admin_session(context: BrowserContext, DIR: DirManager) -> BrowserContext: @pytest.fixture -def user_session(context: BrowserContext, DIR: Path) -> BrowserContext: +def user_session(context: BrowserContext, DIR: DirManager) -> BrowserContext: state_file = DIR.STATES / "user_state.json" storage_state = json.loads(state_file.read_bytes()) context.add_cookies(storage_state["cookies"])