Files
github-stats-extended/frontend/backend/tests/aggregation/layer0/test_contributions.py
T

21 lines
649 B
Python

from datetime import date, timedelta
from aiounittest.case import AsyncTestCase
from src.aggregation.layer0.contributions import get_contributions
from src.constants import TEST_TOKEN as TOKEN, TEST_USER_ID as USER_ID
from src.models import UserContributions
class TestTemplate(AsyncTestCase):
async def test_get_contributions(self):
response = await get_contributions(
user_id=USER_ID,
start_date=date.today() - timedelta(days=30),
end_date=date.today(),
access_token=TOKEN,
)
self.assertIsInstance(response, UserContributions)
# TODO: Add further validation