mirror of
https://github.com/apache/superset.git
synced 2026-07-12 01:35:36 +00:00
Reset session state (``rollback`` + ``expire_all``) before and after each test in this class. Defensive hygiene against the Postgres-only multi- test cascade documented in spec task T062 — a previous test in the full-suite ordering can leave Continuum's shadow-table session attributes in a state where the restore command's ``@transaction`` boundary raises mid-flush and the API returns 422 "Dataset could not be updated." Note: this *doesn't* fix the cascade itself (the polluter is writing to the DB, not just the session; reproducer remains 3 failures on Postgres full-suite ordering). The root cause is queued as T062. This change just guarantees that whatever state this class' tests inherit, they start from a clean session view. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>