feat: a ready sheet's pieces under 5 mm show on the Kanban card (Marcus, 2026-11-26, #81)
All checks were successful
Build and deploy / Validate source (push) Successful in 6s
Build and deploy / Integration suite on a real stack (push) Successful in 7m52s
Build and deploy / Secret scan and release gate (push) Successful in 7s
Build and deploy / Publish images (push) Successful in 1m29s
All checks were successful
Build and deploy / Validate source (push) Successful in 6s
Build and deploy / Integration suite on a real stack (push) Successful in 7m52s
Build and deploy / Secret scan and release gate (push) Successful in 7s
Build and deploy / Publish images (push) Successful in 1m29s
The Site already counted them and warned the customer; the count now travels with the item (close_pieces) to the card's flags, the order panel and the quote review, so the room sees it before printing. Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
This commit is contained in:
@@ -39,5 +39,17 @@ class SheetGapTests(unittest.TestCase):
|
||||
self.assertEqual(str(caught.exception), SHEET_GAP_CHANGED)
|
||||
|
||||
|
||||
class ClosePiecesTests(unittest.TestCase):
|
||||
"""The Site's count of pieces under 5 mm travels with the item to the
|
||||
Kanban card (Marcus, 2026-11-26, #81)."""
|
||||
def test_the_count_is_kept_and_defaults_to_none(self):
|
||||
item = sheet()
|
||||
self.assertEqual(item.close_pieces, 0)
|
||||
data = item.model_dump(mode='json')
|
||||
self.assertEqual(Item.model_validate({**data, 'close_pieces': 14}).close_pieces, 14)
|
||||
with self.assertRaises(ValueError):
|
||||
Item.model_validate({**data, 'close_pieces': -1})
|
||||
|
||||
|
||||
if __name__ == '__main__':
|
||||
unittest.main()
|
||||
|
||||
Reference in New Issue
Block a user