mirror of
https://github.com/sstent/go-garth.git
synced 2026-01-28 01:52:11 +00:00
sync
This commit is contained in:
15
python-garth/tests/stats/test_sleep_stats.py
Normal file
15
python-garth/tests/stats/test_sleep_stats.py
Normal 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
|
||||
Reference in New Issue
Block a user