fix: parts of 10 m are the code's default too, not only the stack's
All checks were successful
Build and deploy / Validate source (push) Successful in 5s
Build and deploy / Integration suite on a real stack (push) Successful in 7m58s
Build and deploy / Secret scan and release gate (push) Successful in 5s
Build and deploy / Publish images (push) Successful in 1m21s

A stack without PRINT_PART_CM (the local one and CI) cut films in 15 m parts,
4,8 GB decoded, which FlexiPRINT refuses (Marcus, 2026-11-18). The comments
that still said 15 m now say a part.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
Cauê Faleiros
2026-11-27 15:03:36 -03:00
parent b64947eb76
commit ba85168c09
5 changed files with 14 additions and 11 deletions

View File

@@ -48,9 +48,10 @@ class RenderLimitTests(unittest.TestCase):
return {'production': {'height_cm': height, 'placements': [
{'y_cm': 0, 'length_cm': height, 'source_index': 0}]}}
self.assertEqual(render_seconds(film(800)), RENDER_SECONDS)
# A film in parts gets one part more: a cut moved to a clear band (#136).
self.assertEqual(render_seconds(film(2359.2)), 3 * RENDER_SECONDS)
self.assertEqual(render_seconds(film(4600)), 5 * RENDER_SECONDS)
# Parts of 10 m (Marcus, 2026-11-18), and a film in parts gets one
# part more: a cut moved to a clear band (#136).
self.assertEqual(render_seconds(film(2359.2)), 4 * RENDER_SECONDS)
self.assertEqual(render_seconds(film(4600)), 6 * RENDER_SECONDS)
self.assertEqual(render_seconds({'mode': 'file'}), RENDER_SECONDS)