mirror of
https://github.com/sstent/go-garth.git
synced 2026-01-26 17:11:42 +00:00
working auth and activity list
This commit is contained in:
15
garth/tests/stats/test_hydration.py
Normal file
15
garth/tests/stats/test_hydration.py
Normal file
@@ -0,0 +1,15 @@
|
||||
from datetime import date
|
||||
|
||||
import pytest
|
||||
|
||||
from garth import DailyHydration
|
||||
from garth.http import Client
|
||||
|
||||
|
||||
@pytest.mark.vcr
|
||||
def test_daily_hydration(authed_client: Client):
|
||||
end = date(2024, 6, 29)
|
||||
daily_hydration = DailyHydration.list(end, client=authed_client)
|
||||
assert daily_hydration[-1].calendar_date == end
|
||||
assert daily_hydration[-1].value_in_ml == 1750.0
|
||||
assert daily_hydration[-1].goal_in_ml == 2800.0
|
||||
Reference in New Issue
Block a user