feat: the print PDF ends in a footer naming the order, item, date and length
Some checks failed
Build and deploy / Validate source (push) Successful in 5s
Build and deploy / Integration suite on a real stack (push) Failing after 3m55s
Build and deploy / Secret scan and release gate (push) Successful in 5s
Build and deploy / Publish images (push) Has been skipped
Some checks failed
Build and deploy / Validate source (push) Successful in 5s
Build and deploy / Integration suite on a real stack (push) Failing after 3m55s
Build and deploy / Secret scan and release gate (push) Successful in 5s
Build and deploy / Publish images (push) Has been skipped
Dropstar's item 4 (2026-10-21): the PDF had no text at all, so a sheet cut off or dropped in the room was guesswork. A 1,5 cm band after the last piece, outside the billed length and never over artwork, carries one line in black with no background: DROPSTAR · Pedido DTF-123 · Item 1/2 · 21/10/2026 · 0,90 m The order is named by its Kanban number, the purchase order Tiny keeps, since Tiny's own number may not exist yet when the PDF is made. The brand is text until Dropstar sends the logo. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
@@ -87,8 +87,10 @@ def run():
|
||||
pdf = response.read()
|
||||
assert pdf.startswith(b'%PDF-') and pdf.rstrip().endswith(b'%%EOF')
|
||||
width, height = map(float, re.search(rb'/MediaBox \[0 0 ([\d.]+) ([\d.]+)\]', pdf).groups())
|
||||
assert abs(width - 57 * PT_PER_CM) < 0.01 and abs(height - 10 * PT_PER_CM) < 0.01, (width, height)
|
||||
print('PASS: paid order generated a 57 x 10 cm print file with both copies')
|
||||
# The layout's 10 cm and the 1,5 cm footer band, outside the billed length.
|
||||
assert abs(width - 57 * PT_PER_CM) < 0.01 and abs(height - 11.5 * PT_PER_CM) < 0.01, (width, height)
|
||||
assert row['detail']['footer'].startswith('DROPSTAR · Pedido DTF-%d · Item 1/1 · ' % order['number']), row['detail']
|
||||
print('PASS: paid order generated a 57 x 10 cm print file with both copies and its footer')
|
||||
|
||||
# The automatic folder, downloading on arrival, gets the generated file
|
||||
# before anyone approves it; at the queue only, it does not.
|
||||
|
||||
Reference in New Issue
Block a user