From f494200980deedcd4b6ecbd0c3a2bdfc4772bf04 Mon Sep 17 00:00:00 2001 From: Alex Harrison Date: Tue, 24 Nov 2026 00:23:30 -0700 Subject: [PATCH] Live suite: the settings update sends sweat level 7 The API takes 1, 3, 5, 7 or 9 for sweat_level and answers 400 invalid_value for any other value. tests/test_live.py still sent 6, so the live suite failed. 7 is a level the app stores and differs from the 5 the athlete was created with, so the check still proves the update took. Co-Authored-By: Claude Fable 5.2 --- tests/test_live.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/test_live.py b/tests/test_live.py index 867ebd0..f94bdef 100644 --- a/tests/test_live.py +++ b/tests/test_live.py @@ -153,8 +153,8 @@ def test_main_flows(live): assert taken.value.athlete_id == complete["id"] assert [a["id"] for a in client.athletes.list(external_id=f"{run}-a")["athletes"]] == [complete["id"]] assert client.athletes.update(complete["id"], name="Live Suite")["name"] == "Live Suite" - settings = client.athletes.update_settings(complete["id"], **{**COMPLETE["settings"], "sweat_level": 6}) - assert settings["sweat_level"] == 6 + settings = client.athletes.update_settings(complete["id"], **{**COMPLETE["settings"], "sweat_level": 7}) + assert settings["sweat_level"] == 7 capture("fueling_profile", "FuelingProfile", client.athletes.get_fueling_profile(complete["id"])) batch = capture("athletes_batch", "BatchAthleteResponse", client.athletes.batch_create( [{"external_id": f"{run}-c"}, {"sex": "female"}, {"external_id": f"{run}-a"}]))