Files
Aurora-Core/tests
NixReaperandClaude Sonnet 5 1cdfbc59ac
CI / lint (push) Canceled after 0s
CI / typecheck (push) Canceled after 0s
CI / unit-tests (push) Canceled after 0s
CI / integration-tests (push) Canceled after 0s
CI / container-build (push) Canceled after 0s
CI / dependency-audit (push) Canceled after 0s
Fix test isolation: trending tests were leaking data into other tests
Not a bug in production code -- refresh_trending()'s tests use
session_scope() for real, permanent commits (necessary, since
refresh_trending manages its own sessions), unlike every other
integration test's db_session fixture, which rolls back after each test.

FakeTrendingProvider reused FAKE_MOVIE/FAKE_SERIES unmodified except for
id/title, so every synthetic trending movie/series carried the same
embedded video id and imdb_id -- values meant to be globally unique per
real TMDb entity. Those commits were never rolled back, so they
permanently occupied uq_video_provider_source/uq_external_id_source in
the shared test database for the rest of the run, causing
test_watch_providers.py (which runs later alphabetically and ingests the
same fixtures unmodified via the normal rolled-back db_session) to
collide against leaked data with 14 failures that had nothing to do with
watch providers.

Found by actually running the full suite against real Postgres --
confirms it was worth doing before this deploys.

Co-Authored-By: Claude Sonnet 5 <[email protected]>
2026-09-06 07:45:39 -05:00
..