Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions now-notes/2026-11-26-floor-print-test-v5.md
Original file line number Diff line number Diff line change
@@ -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.
6 changes: 3 additions & 3 deletions tests/floor_groups_print_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -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',
Expand All @@ -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
Expand All @@ -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)), [])

Expand Down
Loading