From e7910a88a54a14c7ef8dfcfca238b0eccc28744e Mon Sep 17 00:00:00 2001 From: Daniel Date: Mon, 11 Dec 2023 22:56:05 +0100 Subject: [PATCH] add assert message --- recipes/authentik/tests_authentik/fixtures_authentik.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/recipes/authentik/tests_authentik/fixtures_authentik.py b/recipes/authentik/tests_authentik/fixtures_authentik.py index f1c5823..fdba975 100644 --- a/recipes/authentik/tests_authentik/fixtures_authentik.py +++ b/recipes/authentik/tests_authentik/fixtures_authentik.py @@ -9,7 +9,7 @@ from pytest_abra import BaseUrl, DirManager @pytest.fixture def authentik_admin_context(context: BrowserContext, DIR: DirManager) -> BrowserContext: state_file = DIR.STATES / "authentik_admin_state.json" - assert state_file.is_file() + assert state_file.is_file(), "authentik setup did not finish successfully" storage_state = json.loads(state_file.read_bytes()) context.add_cookies(storage_state["cookies"]) return context @@ -27,7 +27,7 @@ def authentik_admin_page(authentik_admin_context: BrowserContext, DIR: DirManage @pytest.fixture def authentik_user_context(context: BrowserContext, DIR: DirManager) -> BrowserContext: state_file = DIR.STATES / "authentik_user_state.json" - assert state_file.is_file() + assert state_file.is_file(), "authentik setup did not finish successfully" storage_state = json.loads(state_file.read_bytes()) context.add_cookies(storage_state["cookies"]) return context