update all imports in test files: fastapi_oidc_op → porchlight
This commit is contained in:
parent
14037117e7
commit
7cb1adbd06
31 changed files with 63 additions and 63 deletions
|
|
@ -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:
|
||||
|
|
|
|||
|
|
@ -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:
|
||||
|
|
|
|||
|
|
@ -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:
|
||||
|
|
|
|||
|
|
@ -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"
|
||||
|
|
|
|||
|
|
@ -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:
|
||||
|
|
|
|||
|
|
@ -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:
|
||||
|
|
|
|||
|
|
@ -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:
|
||||
|
|
|
|||
|
|
@ -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"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue