mirror of
https://github.com/revanced/revanced-api.git
synced 2025-04-29 22:24:31 +02:00
fix: fix codeql issues
This commit is contained in:
parent
13ee02ae38
commit
b5568db79f
4
app.py
4
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
|
||||
|
||||
|
@ -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)
|
||||
|
Loading…
x
Reference in New Issue
Block a user