mirror of
https://github.com/wowlikon/LiB.git
synced 2026-02-04 04:31:09 +00:00
Добавление авторизации и фронтэнда
This commit is contained in:
+5
-4
@@ -1,23 +1,24 @@
|
||||
from fastapi import FastAPI
|
||||
from tests.mock_routers import books, authors, genres, relationships
|
||||
|
||||
from library_service.routers.misc import router as misc_router
|
||||
from tests.mock_routers import authors, books, genres, relationships
|
||||
|
||||
|
||||
def create_mock_app() -> FastAPI:
|
||||
"""Create FastAPI app with mock routers for testing"""
|
||||
"""Создание FastAPI app с моками роутеров для тестов"""
|
||||
app = FastAPI(
|
||||
title="Library API Test",
|
||||
description="Library API for testing without database",
|
||||
version="1.0.0",
|
||||
)
|
||||
|
||||
# Include mock routers
|
||||
# Подключение мок-роутеров
|
||||
app.include_router(books.router)
|
||||
app.include_router(authors.router)
|
||||
app.include_router(genres.router)
|
||||
app.include_router(relationships.router)
|
||||
|
||||
# Include real misc router (it doesn't use database)
|
||||
# Подключение реального misc роутера
|
||||
app.include_router(misc_router)
|
||||
|
||||
return app
|
||||
|
||||
Reference in New Issue
Block a user