Remove obsolete endpoints (#89)
Remove endpoints api/login/token and api/login/profile --------- Co-authored-by: Thomas Peetz <thomas.peetz@cimt-ag.de> Reviewed-on: #89
This commit is contained in:
@@ -8,7 +8,7 @@ import pytest
|
||||
from fastapi import FastAPI
|
||||
from fastapi.testclient import TestClient
|
||||
from sqlalchemy import create_engine
|
||||
from sqlalchemy.orm import sessionmaker
|
||||
from sqlalchemy.orm import Session, sessionmaker
|
||||
|
||||
from src.apis.base import api_router
|
||||
from src.db.models.base import Base
|
||||
@@ -45,7 +45,7 @@ def app() -> Generator[FastAPI, Any, None]:
|
||||
|
||||
|
||||
@pytest.fixture(scope="module")
|
||||
def db_session(app: FastAPI) -> Generator[SessionTesting, Any, None]:
|
||||
def db_session(app: FastAPI) -> Generator[Session, Any, None]:
|
||||
connection = engine.connect()
|
||||
transaction = connection.begin()
|
||||
session = SessionTesting(bind=connection)
|
||||
@@ -57,7 +57,7 @@ def db_session(app: FastAPI) -> Generator[SessionTesting, Any, None]:
|
||||
|
||||
@pytest.fixture(scope="module")
|
||||
def client(
|
||||
app: FastAPI, db_session: SessionTesting
|
||||
app: FastAPI, db_session: Session
|
||||
) -> Generator[TestClient, Any, None]:
|
||||
"""
|
||||
Create a new FastAPI TestClient that uses the `db_session` fixture to override
|
||||
|
||||
Reference in New Issue
Block a user