rename more authentik fixtures
This commit is contained in:
parent
5d3743962f
commit
add21a694e
1 changed files with 2 additions and 2 deletions
|
|
@ -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"])
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue