working auth and activity list

This commit is contained in:
2025-09-07 06:38:39 -07:00
parent 5b1c1e61c4
commit 75d7e63edd
120 changed files with 25171 additions and 0 deletions

View File

@@ -0,0 +1,15 @@
from datetime import date
import pytest
from garth import DailySleep
from garth.http import Client
@pytest.mark.vcr
def test_daily_sleep(authed_client: Client):
end = date(2023, 7, 20)
days = 20
daily_sleep = DailySleep.list(end, days, client=authed_client)
assert daily_sleep[-1].calendar_date == end
assert len(daily_sleep) == days