mirror of
https://github.com/revanced/revanced-api.git
synced 2025-04-30 14:44:28 +02:00
16 lines
359 B
Python
16 lines
359 B
Python
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)
|