mirror of
https://github.com/revanced/revanced-api.git
synced 2025-05-02 15:44:33 +02:00
fix: fix codeql issues
This commit is contained in:
parent
13ee02ae38
commit
b5568db79f
2
app.py
2
app.py
@ -49,8 +49,6 @@ configure_auth(app)
|
|||||||
# sanic-limiter
|
# sanic-limiter
|
||||||
configure_limiter(app)
|
configure_limiter(app)
|
||||||
|
|
||||||
|
|
||||||
for endpoint in api:
|
|
||||||
app.blueprint(api)
|
app.blueprint(api)
|
||||||
|
|
||||||
# https://sanic.dev/en/guide/how-to/static-redirects.html
|
# https://sanic.dev/en/guide/how-to/static-redirects.html
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
import pytest
|
import pytest
|
||||||
from sanic import Sanic
|
from sanic import Sanic
|
||||||
|
|
||||||
from api.models.socials import ConnectionsResponseModel
|
from api.models.socials import SocialsResponseModel
|
||||||
|
|
||||||
from config import api_version
|
from config import api_version
|
||||||
|
|
||||||
@ -12,4 +12,4 @@ from config import api_version
|
|||||||
async def test_socials(app: Sanic):
|
async def test_socials(app: Sanic):
|
||||||
_, response = await app.asgi_client.get(f"/{api_version}/socials")
|
_, response = await app.asgi_client.get(f"/{api_version}/socials")
|
||||||
assert response.status == 200
|
assert response.status == 200
|
||||||
assert ConnectionsResponseModel(**response.json)
|
assert SocialsResponseModel(**response.json)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user