From aea15e5714b8ef6ccf2052b02a64ddbb484466e3 Mon Sep 17 00:00:00 2001 From: krishanraja Date: Thu, 26 Nov 2026 15:22:08 +0000 Subject: [PATCH] Floor print test: key its synthetic group clear of the v5 ruling tests/floor_groups_print_test.py built a synthetic group keyed house_brand. Since d4d23e2d (the v5 look lock, 25 Nov), config/floor-rulings.json v5_groups rewords any group with that key to "Use the v5 palette and the wordmark on ink.", so the printed floor carried the ruling's words, the test's own words never appeared, and the test failed on main. It surfaced on the standards check-in pull request #994, the first change since then to run it. The synthetic group is now corner_mark, which no ruling touches; the ruling itself is unchanged. Co-Authored-By: Claude Opus 5.5 --- now-notes/2026-11-26-floor-print-test-v5.md | 3 +++ tests/floor_groups_print_test.py | 6 +++--- 2 files changed, 6 insertions(+), 3 deletions(-) create mode 100644 now-notes/2026-11-26-floor-print-test-v5.md diff --git a/now-notes/2026-11-26-floor-print-test-v5.md b/now-notes/2026-11-26-floor-print-test-v5.md new file mode 100644 index 000000000..9460759d9 --- /dev/null +++ b/now-notes/2026-11-26-floor-print-test-v5.md @@ -0,0 +1,3 @@ +Status: tests/floor_groups_print_test.py passes again on main: its synthetic group was keyed house_brand, which the 25 Nov v5 ruling (config/floor-rulings.json v5_groups) now rewords, so the test printed the ruling's words instead of its own; the group is now corner_mark, which no ruling touches. +Next: Let the standards check-in pull request #994 rerun its CI on main with this fix and merge itself. +North Star check (2026-11-26): holds. diff --git a/tests/floor_groups_print_test.py b/tests/floor_groups_print_test.py index 113ff34c8..7293e6eb2 100644 --- a/tests/floor_groups_print_test.py +++ b/tests/floor_groups_print_test.py @@ -31,7 +31,7 @@ 'records': {}, } GROUPS = [ - {'key': 'house_brand', 'title': 'The house brand', 'standing': 'reworded', + {'key': 'corner_mark', 'title': 'The corner mark', 'standing': 'reworded', 'statement': 'On a carousel the wordmark sits small in the bottom-right corner.', 'decided_on': '2026-11-15', 'members': ['s1', 's2']}, {'key': 'words_add', 'title': 'Words add', 'standing': 'approved', @@ -54,7 +54,7 @@ def test_a_makers_floor_prints_its_groups_words_above_their_members(self): doc = dict(DOC, groups=GROUPS) code, out = run(doc, '--format', 'carousel') self.assertEqual(code, 0) - self.assertIn('The house brand [house_brand; reworded by him, 2026-11-15]', out) + self.assertIn('The corner mark [corner_mark; reworded by him, 2026-11-15]', out) self.assertIn('bottom-right corner', out) self.assertIn('Members here: s1, s2', out) self.assertNotIn('Words add', out) # touches no carousel standard @@ -69,7 +69,7 @@ def test_an_older_file_without_groups_prints_as_before(self): def test_check_refuses_a_group_with_an_unknown_member_or_no_words(self): bad = dict(DOC, groups=[dict(GROUPS[0], members=['s9']), {'key': 'x', 'standing': 'approved'}]) problems = floor.check(bad) - self.assertIn('group house_brand: member s9 is not in standards', problems) + self.assertIn('group corner_mark: member s9 is not in standards', problems) self.assertTrue(any("group 'x' needs a key" in p for p in problems)) self.assertEqual(floor.check(dict(DOC, groups=GROUPS)), [])