test: pin that an at-cutoff upgrade job short-circuits intake (no candidates)

This commit is contained in:
Jonathan
2026-07-11 12:56:54 +02:00
parent 4481f1d998
commit 2273bf86ee
+4
View File
@@ -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