From 2273bf86eef698f619bd30e85876eb3aa51bab09 Mon Sep 17 00:00:00 2001 From: Jonathan Date: Sat, 11 Jul 2026 12:56:54 +0200 Subject: [PATCH] test: pin that an at-cutoff upgrade job short-circuits intake (no candidates) --- worker/tests/test_upgrade_e2e.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/worker/tests/test_upgrade_e2e.py b/worker/tests/test_upgrade_e2e.py index 6086f65..b20f832 100644 --- a/worker/tests/test_upgrade_e2e.py +++ b/worker/tests/test_upgrade_e2e.py @@ -124,3 +124,7 @@ def test_already_at_cutoff_copy_is_not_replaced(conn): assert _job_state(conn, job_id) == "imported" # unchanged: still the original below-Q, already-at-cutoff copy, untouched. assert _library_row(conn, "John Mayer", "Continuum") == ("/m/already-hires", 3, "qobuz") + + with conn.cursor() as cur: + cur.execute('SELECT count(*) FROM "Candidate" WHERE "jobId" = %s', (job_id,)) + assert cur.fetchone()[0] == 0 # intake short-circuited: match stage never ran, no candidates persisted