fix: remove dead Home-variant GetClasses; classes now aliases schedule
The remaining open item. Probing settled it: the Home-variant GetClasses returns placeholder records even when the real client calls it -- confirmed by capturing the app's own request/response pair during a live walk (200, ~10 KB, zero real records, empty ScheduleList). Every screen-variable override (WBDataFetchIsComplete, IsLoading, ProgramsWithHistory, all date/program combos) changes nothing. It is not parameter-gated; it is empty by design. So the fix is honesty, not persistence: the action is removed from the allowlist (a test pins it out so it cannot quietly return), and `wodify classes` becomes an argparse alias of `schedule`, the class-list action that actually returns data. `schedule` also gains the default-to-today behaviour the old command had. 134 tests, no network required. Co-Authored-By: Claude Opus 5 <[email protected]>
This commit is contained in:
1 parent
1d0fd9c8ca
commit
8ab4ad4b17
5 files changed
+77
-19
No files matched your search
+11
-2
@@ -66,11 +66,20 @@ def test_guard_does_not_block_legitimate_read_paths():
|
||||
|
||||
|
||||
def test_all_expected_actions_registered():
|
||||
expected = {"bookings", "wodflags", "attendees", "classdetail",
|
||||
"coach", "classes", "waitlist"}
|
||||
expected = {"bookings", "workout", "wodflags", "attendees", "classdetail",
|
||||
"coach", "schedule", "waitlist"}
|
||||
assert expected <= set(actions.keys())
|
||||
|
||||
|
||||
def test_dead_home_getclasses_is_not_registered():
|
||||
"""The Home-variant GetClasses returns placeholders even when the real
|
||||
client calls it (confirmed live). It must stay out of the allowlist so
|
||||
nothing reports its empty response as a real answer."""
|
||||
assert "classes" not in actions.ACTIONS
|
||||
for action in actions.ACTIONS.values():
|
||||
assert "Classes/Attendance/DataActionGetClasses" not in action.path
|
||||
|
||||
|
||||
def test_get_returns_action_for_workout_probe():
|
||||
"""wodflags is deliberately not called 'workout': it returns a boolean, and
|
||||
naming it 'workout' invited reporting 'no workout' from a probe response."""
|
||||
|
||||
Reference in new issue
Block a user