mirror of
https://github.com/storytold/craft-libs.git
synced 2026-11-08 11:31:47 +00:00
Review follow-up. The test asserted `respell(validated, driver_default) == None`. respell also returns None when it refuses a ticket, and in_drivers_spelling then keeps the ticket as it is, so a ticket still spelled `ns0000` passed. The test now compares the vendor namespace declarations of the ticket driver_ticket returns with those of the driver's own default ticket and fails when a namespace the driver declares is under another prefix. The comparison is `ticket::prefixes_unlike_the_drivers` (test-only), unit-tested here: it flags the ticket as the merge returns it, passes the respelled one and the driver's own, and flags a ticket respell refused, where `respell(..) == None` can't tell it from a correct one. Checked against a Brother HL-L2390DW: the test passes, and fails with `(brother namespace, "ns0000", "brpsk")` when in_drivers_spelling is made to return the merged ticket. Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01FQ5PzHVUcntEHU97zniM5U