- migration 20261018170000: pgmq badge_print/badge_print_dlq, print_stations, token-gated printer RPCs (claim/complete/fail/heartbeat), admin RPCs, welcome_checkin enqueue; badge_print_tests.sql (101 assertions) - apps/printer: Python worker (Playwright render -> brother_ql via pyusb), comitup captive-portal (Wi-Fi + HTTPS endpoint + anon key + token), arm64 image build + idempotent Pi setup/install scripts, 77 pytest - apps/admin: Printing view, station management/DLQ, global printer status pill, Print button on Registrations, standalone print renderer entry (print.html -> dist-print) with bundled fonts - docs: printing.md + architecture/schema/rpcs/tests/admin-app updates, apps/printer/AGENT.md operating manual - e2e: printing.spec.ts Co-authored-by: Stephan Charles <[email protected]> Co-authored-by: Amelia Hernandez <[email protected]> Co-authored-by: Markus Franz <[email protected]> Co-authored-by: Sabrina Hota <[email protected]> Co-authored-by: Nilüfer Doğan <[email protected]>
19 lines
638 B
Python
19 lines
638 B
Python
from datetime import datetime
|
|
|
|
import pytest
|
|
|
|
from worker.label import find_label
|
|
from worker.status_labels import need_wifi_label, ready_label
|
|
|
|
|
|
@pytest.mark.parametrize("label_id", ["103", "103x164", "62"])
|
|
def test_status_labels_render_for_any_roll(label_id):
|
|
spec = find_label(label_id)
|
|
network = {"state": "CONNECTED", "ssid": "Venue", "ip": "10.0.0.5"}
|
|
for img in (
|
|
ready_label(spec, "Welcome desk", network, "v1", datetime(2026, 10, 18, 9, 0)),
|
|
need_wifi_label(spec, "Convivo-Printer-6372"),
|
|
):
|
|
assert img.width == spec.width_px
|
|
assert img.height > 0 and isinstance(img.height, int)
|