Skip to content

fix(test): remove stale profile auto-create assertion from bank stats test#1323

Merged
nicoloboschi merged 4 commits intomainfrom
fix/bank-stats-test-regression
Apr 29, 2026
Merged

fix(test): remove stale profile auto-create assertion from bank stats test#1323
nicoloboschi merged 4 commits intomainfrom
fix/bank-stats-test-regression

Conversation

@nicoloboschi
Copy link
Copy Markdown
Collaborator

Summary

  • GET /banks/{bank_id}/profile no longer auto-creates banks (changed in fix(api): GET /banks/{bank_id}/profile no longer auto-creates the bank #1287), but test_memories_timeseries_empty_bank_returns_zero_filled_buckets still called it to "ensure the bank exists"
  • The profile check was unnecessary — the timeseries endpoint handles non-existent banks correctly by returning zero-filled buckets
  • Removes the stale assertion to fix the test regression on main

Test plan

  • test_memories_timeseries_empty_bank_returns_zero_filled_buckets passes locally
  • CI passes

… test

GET /banks/{bank_id}/profile no longer auto-creates banks (99a8978),
so the empty-bank timeseries test was failing with 404. The profile
check was unnecessary — the timeseries endpoint handles non-existent
banks by returning zero-filled buckets.
Three more tests relied on GET /profile auto-creating banks:
- test_base_path: remove redundant profile GET, retain creates the bank
- test_http_api_integration: same — bank is created by the first retain
- test_bank_templates: export of nonexistent bank now correctly expects 404
More tests relied on GET /profile to auto-create banks:
- test_reflections: 6 occurrences used as bank creation step
- test_http_api_integration: 1 occurrence used to ensure bank exists
- test_base_path_deployment: 1 occurrence in integration tests
@nicoloboschi nicoloboschi merged commit 9be2e05 into main Apr 29, 2026
57 of 58 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant