Updated to expose auth_app instead of app_route
This commit is contained in:
@@ -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
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user