fix: attendees after 2026-08 Wodify redesign
- endpoint moved: WodifyClient_Class/Classes/Class/ActionGetClassAttendees (old Schedule_OS GetClassAttendees no longer fires anywhere in the app) - render.attendees() delegates to attendee_rows() — PersonName, not Name - test fixtures updated to ClassDetailAttendee.List wire shape - CLAUDE.md: diagnosis notes (path re-prefix + lazy attendee action) prime now captures 8/8 actions; 138 tests pass
This commit is contained in:
1 parent
ae3c39b384
commit
fdc2c49991
4 files changed
+53
-18
No files matched your search
@@ -50,7 +50,14 @@ def test_bookings_formats_rows():
|
||||
|
||||
|
||||
def test_attendees_counts_and_lists():
|
||||
data = {"Response": {"List": [{"Name": "A B"}, {"Name": "C D"}]}}
|
||||
# Current wire shape (2026-08 redesign): ClassDetailAttendee.List with
|
||||
# PersonName. The pre-redesign {"Response": {"List": [{"Name": ...}]}}
|
||||
# shape is covered by attendee_rows' fallbacks; the CLI view must render
|
||||
# the shape the service actually returns today.
|
||||
data = {"Response": {"ClassDetailAttendee": {"List": [
|
||||
{"PersonName": "A B", "StatusInClass": "Reserved"},
|
||||
{"PersonName": "C D", "StatusInClass": "Reserved"},
|
||||
]}}}
|
||||
out = render.attendees(data)
|
||||
assert out.startswith("2 attendees:") and "A B" in out and "C D" in out
|
||||
|
||||
|
||||
Reference in new issue
Block a user