update all imports in test files: fastapi_oidc_op → porchlight

This commit is contained in:
Johan Lundberg 2026-02-16 15:34:53 +01:00
parent 14037117e7
commit 7cb1adbd06
No known key found for this signature in database
GPG key ID: A6C152738D03C7D1
31 changed files with 63 additions and 63 deletions

View file

@ -4,8 +4,8 @@ from datetime import UTC, datetime
from argon2 import PasswordHasher
from httpx import AsyncClient
from fastapi_oidc_op.authn.password import PasswordService
from fastapi_oidc_op.models import PasswordCredential, User, WebAuthnCredential
from porchlight.authn.password import PasswordService
from porchlight.models import PasswordCredential, User, WebAuthnCredential
async def _create_user_and_login(client: AsyncClient) -> str:

View file

@ -3,8 +3,8 @@ from datetime import UTC, datetime
from argon2 import PasswordHasher
from httpx import AsyncClient
from fastapi_oidc_op.authn.password import PasswordService
from fastapi_oidc_op.models import PasswordCredential, User
from porchlight.authn.password import PasswordService
from porchlight.models import PasswordCredential, User
async def _login(client: AsyncClient, username: str = "alice", password: str = "testpass") -> None:

View file

@ -3,8 +3,8 @@ from datetime import UTC, datetime
from argon2 import PasswordHasher
from httpx import AsyncClient
from fastapi_oidc_op.authn.password import PasswordService
from fastapi_oidc_op.models import PasswordCredential, User, WebAuthnCredential
from porchlight.authn.password import PasswordService
from porchlight.models import PasswordCredential, User, WebAuthnCredential
async def _create_user_and_login(client: AsyncClient) -> str:

View file

@ -17,8 +17,8 @@ from fido2.webauthn import (
)
from httpx import AsyncClient
from fastapi_oidc_op.authn.password import PasswordService
from fastapi_oidc_op.models import PasswordCredential, User, WebAuthnCredential
from porchlight.authn.password import PasswordService
from porchlight.models import PasswordCredential, User, WebAuthnCredential
RP_ID = "localhost"
ORIGIN = "http://localhost:8000"

View file

@ -3,8 +3,8 @@ from datetime import UTC, datetime
from argon2 import PasswordHasher
from httpx import AsyncClient
from fastapi_oidc_op.authn.password import PasswordService
from fastapi_oidc_op.models import PasswordCredential, User
from porchlight.authn.password import PasswordService
from porchlight.models import PasswordCredential, User
async def test_password_login_unknown_user_returns_error_fragment(client: AsyncClient) -> None:

View file

@ -2,7 +2,7 @@ from datetime import UTC, datetime, timedelta
from httpx import AsyncClient
from fastapi_oidc_op.models import MagicLink
from porchlight.models import MagicLink
async def test_register_invalid_token_returns_error_page(client: AsyncClient) -> None:

View file

@ -3,7 +3,7 @@ from unittest.mock import MagicMock
import pytest
from fastapi import HTTPException
from fastapi_oidc_op.dependencies import get_session_user, require_session_user
from porchlight.dependencies import get_session_user, require_session_user
def test_get_session_user_none_when_missing() -> None:

View file

@ -9,7 +9,7 @@ from fido2.webauthn import (
)
from httpx import AsyncClient
from fastapi_oidc_op.models import User, WebAuthnCredential
from porchlight.models import User, WebAuthnCredential
RP_ID = "localhost"
ORIGIN = "http://localhost:8000"