You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Fix the failing dashboard tests in learn (mock rows lack the new description column) #1125
api_dashboard (learn/src/worker.py ~line 3330) now selects and decrypts a.description for hosted and joined activities (desc = await decrypt_aes(r.description or "", enc)). The MockRow fixtures in learn/tests/test_api_join_dashboard.py (test_hosted_activities_returned ~line 188 and test_joined_activities_returned ~line 206) were not updated, so both fail with AttributeError: 'MockRow' object has no attribute 'description'. Run the suite with cd learn && pip install pytest pytest-asyncio && python -m pytest -q (no Cloudflare account needed; tests/conftest.py stubs the Workers runtime).
What to do
Add the missing columns (at least description, slug) to the dashboard MockRow fixtures.
Assert that the dashboard response includes the decrypted description for hosted and joined activities.
Check whether any other column read in api_dashboard is missing from the mocks.
Acceptance criteria
tests/test_api_join_dashboard.py passes in full.
At least one new assertion covers the description field in the response.
Activity
github-actions commentedon Nov 2, 2026