diff --git a/app.py b/app.py index 40a857e..af8a7a7 100644 --- a/app.py +++ b/app.py @@ -49,9 +49,7 @@ configure_auth(app) # sanic-limiter configure_limiter(app) - -for endpoint in api: - app.blueprint(api) +app.blueprint(api) # https://sanic.dev/en/guide/how-to/static-redirects.html diff --git a/tests/test_socials.py b/tests/test_socials.py index d35b73a..b9bc6d8 100644 --- a/tests/test_socials.py +++ b/tests/test_socials.py @@ -1,7 +1,7 @@ import pytest from sanic import Sanic -from api.models.socials import ConnectionsResponseModel +from api.models.socials import SocialsResponseModel from config import api_version @@ -12,4 +12,4 @@ from config import api_version async def test_socials(app: Sanic): _, response = await app.asgi_client.get(f"/{api_version}/socials") assert response.status == 200 - assert ConnectionsResponseModel(**response.json) + assert SocialsResponseModel(**response.json)