From b714336b8159fea10d3c26c84d55d95e2e8c4c89 Mon Sep 17 00:00:00 2001 From: Max Ghenis Date: Fri, 30 Oct 2026 18:31:02 -0400 Subject: [PATCH] Let a certified pair's test survive the pipeline qualifying that pair The pair module's docstring says a variant qualified later for the same pair gets its own id and the pair record stays. The test instead assumed the slug would never name a variant, which fails the results commit for 6.11.0 (#235). It now asks for an id no variant holds. Co-Authored-By: Claude Opus 5.5 --- tests/test_uk_certified_pairs.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/tests/test_uk_certified_pairs.py b/tests/test_uk_certified_pairs.py index 50358c7f2..d4376be47 100644 --- a/tests/test_uk_certified_pairs.py +++ b/tests/test_uk_certified_pairs.py @@ -68,8 +68,10 @@ def test_get_record_resolves_a_pair_a_variant_and_the_default(): assert not pairs.is_pair(pairs.get_record(default)) with pytest.raises(rv.VariantError, match="no certified pair"): pairs.get_record(PAIR + "x") + # An id without the prefix is a variant's: the pipeline may qualify this + # pair under its slug, which then resolves to that variant. with pytest.raises(rv.VariantError, match="no replay variant"): - pairs.get_record(PAIR.removeprefix(pairs.PREFIX)) + pairs.get_record("pe0.0.0_uk0.0.0_no-such-data") @pytest.mark.parametrize(