Skip to content

test(ui): guard qrc resource keys against broken and stale references - #317

Open
gmmcosta15 wants to merge 1 commit into
chore/ui-delete-dead-modulesfrom
test/resource-key-guard
Open

test(ui): guard qrc resource keys against broken and stale references#317
gmmcosta15 wants to merge 1 commit into
chore/ui-delete-dead-modulesfrom
test/resource-key-guard

Conversation

@gmmcosta15

Copy link
Copy Markdown
Collaborator

Description

  • Feature

  • Assert every :/ literal under lib is declared by a .qrc.

  • Assert every .qrc <file> exists on disk.

  • Assert the _rc.py blobs match the .qrc XML and the current asset bytes.

  • Assert every .svg font-family resolves without substitution.

  • XFAIL_KEYS records the keys already broken on dev; may only shrink.

Motivation

Qt returns a null pixmap for a missing key and silently substitutes a missing font, logging neither. This makes both loud before the refactors land.

Tests

7 new tests, all passing.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

python Pull requests that update python code testing

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant