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
|
|
@ -3,10 +3,10 @@ from pathlib import Path
|
|||
import aiosqlite
|
||||
import pytest
|
||||
|
||||
from fastapi_oidc_op.store.sqlite.migrations import run_migrations
|
||||
from porchlight.store.sqlite.migrations import run_migrations
|
||||
|
||||
MIGRATIONS_DIR = (
|
||||
Path(__file__).resolve().parent.parent.parent / "src" / "fastapi_oidc_op" / "store" / "sqlite" / "migrations"
|
||||
Path(__file__).resolve().parent.parent.parent / "src" / "porchlight" / "store" / "sqlite" / "migrations"
|
||||
)
|
||||
|
||||
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
from fastapi_oidc_op.store.exceptions import DuplicateError
|
||||
from porchlight.store.exceptions import DuplicateError
|
||||
|
||||
|
||||
def test_duplicate_error_is_exception() -> None:
|
||||
|
|
|
|||
|
|
@ -2,10 +2,10 @@ from pathlib import Path
|
|||
|
||||
import aiosqlite
|
||||
|
||||
from fastapi_oidc_op.store.sqlite.migrations import run_migrations
|
||||
from porchlight.store.sqlite.migrations import run_migrations
|
||||
|
||||
MIGRATIONS_DIR = (
|
||||
Path(__file__).resolve().parent.parent.parent / "src" / "fastapi_oidc_op" / "store" / "sqlite" / "migrations"
|
||||
Path(__file__).resolve().parent.parent.parent / "src" / "porchlight" / "store" / "sqlite" / "migrations"
|
||||
)
|
||||
|
||||
|
||||
|
|
|
|||
|
|
@ -1,6 +1,6 @@
|
|||
from typing import runtime_checkable
|
||||
|
||||
from fastapi_oidc_op.store.protocols import (
|
||||
from porchlight.store.protocols import (
|
||||
CredentialRepository,
|
||||
MagicLinkRepository,
|
||||
UserRepository,
|
||||
|
|
|
|||
|
|
@ -1,10 +1,10 @@
|
|||
import aiosqlite
|
||||
import pytest
|
||||
|
||||
from fastapi_oidc_op.models import PasswordCredential, User, WebAuthnCredential
|
||||
from fastapi_oidc_op.store.exceptions import DuplicateError
|
||||
from fastapi_oidc_op.store.protocols import CredentialRepository
|
||||
from fastapi_oidc_op.store.sqlite.repositories import (
|
||||
from porchlight.models import PasswordCredential, User, WebAuthnCredential
|
||||
from porchlight.store.exceptions import DuplicateError
|
||||
from porchlight.store.protocols import CredentialRepository
|
||||
from porchlight.store.sqlite.repositories import (
|
||||
SQLiteCredentialRepository,
|
||||
SQLiteUserRepository,
|
||||
)
|
||||
|
|
|
|||
|
|
@ -3,10 +3,10 @@ from datetime import UTC, datetime, timedelta
|
|||
import aiosqlite
|
||||
import pytest
|
||||
|
||||
from fastapi_oidc_op.models import MagicLink
|
||||
from fastapi_oidc_op.store.exceptions import DuplicateError
|
||||
from fastapi_oidc_op.store.protocols import MagicLinkRepository
|
||||
from fastapi_oidc_op.store.sqlite.repositories import SQLiteMagicLinkRepository
|
||||
from porchlight.models import MagicLink
|
||||
from porchlight.store.exceptions import DuplicateError
|
||||
from porchlight.store.protocols import MagicLinkRepository
|
||||
from porchlight.store.sqlite.repositories import SQLiteMagicLinkRepository
|
||||
|
||||
|
||||
@pytest.fixture
|
||||
|
|
|
|||
|
|
@ -1,10 +1,10 @@
|
|||
import aiosqlite
|
||||
import pytest
|
||||
|
||||
from fastapi_oidc_op.models import User
|
||||
from fastapi_oidc_op.store.exceptions import DuplicateError
|
||||
from fastapi_oidc_op.store.protocols import UserRepository
|
||||
from fastapi_oidc_op.store.sqlite.repositories import SQLiteUserRepository
|
||||
from porchlight.models import User
|
||||
from porchlight.store.exceptions import DuplicateError
|
||||
from porchlight.store.protocols import UserRepository
|
||||
from porchlight.store.sqlite.repositories import SQLiteUserRepository
|
||||
|
||||
|
||||
@pytest.fixture
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue