Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

TST: add tests for image generation, fix bug with supported Cairo image types #11

Merged
merged 3 commits into from
Sep 5, 2024

Conversation

rmcar17
Copy link
Contributor

@rmcar17 rmcar17 commented Sep 3, 2024

Resolves #6

Tests the image integrity, image format, image size and image colour mode for generated images.
Due to randomness in the generation, I don't believe the contents of the image cannot be checked much further.

Also changes the supported image types for visualise. The Cairo library does not support .jpg images for instance. Images have been restricted to ["png", "eps", "pdf", "svg"].

pillow cannot read .pdf or .svg images so for those two types the tests merely check that the files are not empty.

Let me know if there's anything else!

@Vini2 Vini2 merged commit bc3546b into metagentools:main Sep 5, 2024
11 checks passed
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

TST: check that visualising works
2 participants