From b5568db79fa0620d06d6945b42a66744b6340bc5 Mon Sep 17 00:00:00 2001 From: Alexandre Teles Date: Wed, 22 Nov 2023 12:24:28 -0300 Subject: [PATCH] fix: fix codeql issues --- app.py | 4 +--- tests/test_socials.py | 4 ++-- 2 files changed, 3 insertions(+), 5 deletions(-) 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)