Updated to expose auth_app instead of app_route

This commit is contained in:
2025-10-28 20:32:30 +01:00
parent 0138ac247a
commit 5d869e3793
10 changed files with 98 additions and 53 deletions

View File

@@ -12,7 +12,7 @@ import pytest
from fastapi import FastAPI
from fastapi.testclient import TestClient
from myauth.api.routes import create_auth_router
from myauth.api import create_auth_app
from myauth.core.auth import AuthService
from myauth.exceptions import (
UserAlreadyExistsError,
@@ -51,8 +51,8 @@ def test_app(mock_auth_service):
FastAPI application configured for testing.
"""
app = FastAPI()
auth_router = create_auth_router(mock_auth_service)
app.include_router(auth_router)
auth_app = create_auth_app(mock_auth_service)
app.mount("/auth", auth_app)
return app