test(udg): drop stale product-prefix assertions from derived-state tests #76
No reviewers
Labels
No labels
priority
P1
priority
P2
priority
P3
priority
P4
bug
duplicate
enhancement
help wanted
invalid
question
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
Toilville/toilville-design!76
Loading…
Reference in a new issue
No description provided.
Delete branch "test/derived-state-stale-assertions"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
closes #72
Both
test_derived_states.pytests flagged in #72 asserted product-prefixedderived-state var names (
--spelwork-color-primary-hoveretc.) that theemitter never produces and that the three products'
color.json$descriptionfields explicitly reject — they are self-defined on thecanonical
--udg-color-*identities so agnostic surfaces/clients canread/inherit them. Their other premises were also wrong: tctd has no
accent.*grouping, and fux-capacity has a realbrand.primary(
#E63535,udg.dart-key: brandPrimary).test_missing_primary_role_skips_primary_statesdeleted — no shippingproduct has this scenario, and
test_absent_base_token_is_skippedalreadycovers the skip logic with a synthetic palette.
test_bespoke_canonical_palettes_are_coveredrewritten astest_no_baseline_inheritance_products_resolve_on_own_tokens— pins thatspelwork/tctd/fux-capacity (all
color_inherits_baseline: false) resolveall three roles from their own tokens and emit the shared canonical names,
never a product-prefixed one.
extract.pyis untouched — this is test-only, naming/premises, not themix-ratio question. That stays PROVISIONAL; follow-up filed at #75.
Verification:
python -m pytest generator/tests/— 138 passed, 18 skipped(was 137 passed/2 failed/18 skipped; net one fewer test from the single
deletion, no other regression).
just check(dist drift, WCAG, ForgeBlockmanifest) — all green, no dist drift.