Skip to content

test(project): cover asset generation without Pillow - #118

Open
glenlouis8 wants to merge 1 commit into
pythonnative:mainfrom
glenlouis8:test/icons-without-pillow
Open

glenlouis8 wants to merge 1 commit into
pythonnative:mainfrom
glenlouis8:test/icons-without-pillow

Conversation

@glenlouis8

Copy link
Copy Markdown
Contributor

Closes #93

Adds tests/project/test_icons_optional.py. It patches icons.pillow_available to return False, so it runs whether or not Pillow is installed, and it makes _open_rgba raise if the fallback paths ever reach it.

Covers:

  • generate_ios_icons, generate_android_icons, generate_ios_splash and generate_android_splash_icon return False
  • dominant_background_color returns None
  • missing source files are never opened
  • absent output directories stay absent
  • existing sentinel files stay byte-for-byte unchanged, including the Android adaptive-icon XML

Test-only change. ./scripts/check.sh passes.

@glenlouis8

Copy link
Copy Markdown
Contributor Author

The three e2e-ios jobs (anim-misc, components-a, inbox) were cancelled after about 30 minutes without ever getting a runner, so they look like a runner queue timeout rather than a failure from this change. Everything else passes. I can't rerun them without admin rights, so could a maintainer re-run the failed jobs? Thanks.

This branch has not been deployed

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Test icon generation fallbacks when Pillow is unavailable

1 participant