mirror of
https://github.com/ReVanced/revanced-api.git
synced 2026-01-20 09:53:56 +00:00
test: add info and donations tests
This commit is contained in:
15
tests/test_donations.py
Normal file
15
tests/test_donations.py
Normal file
@@ -0,0 +1,15 @@
|
||||
import pytest
|
||||
from sanic import Sanic
|
||||
|
||||
from api.models.donations import DonationsResponseModel
|
||||
|
||||
from config import api_version
|
||||
|
||||
# donations
|
||||
|
||||
|
||||
@pytest.mark.asyncio
|
||||
async def test_donations(app: Sanic):
|
||||
_, response = await app.asgi_client.get(f"/{api_version}/donations")
|
||||
assert response.status == 200
|
||||
assert DonationsResponseModel(**response.json)
|
||||
Reference in New Issue
Block a user