-
Notifications
You must be signed in to change notification settings - Fork 9
test image description is not rejected due to violence #54
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pull Request Overview
This PR introduces an initial image test fixture for the graphic image example to ensure that image descriptions are generated correctly without being rejected due to violent content.
- Added tests for describing images via URL and local file paths in the graphic image example.
- Updated the configuration in conftest and the GitHub workflow to support the new test fixtures and proper environment variable checks.
- Revised the README to include setup and testing instructions specific to the graphic image example.
Reviewed Changes
Copilot reviewed 6 out of 7 changed files in this pull request and generated no comments.
File | Description |
---|---|
examples/graphic_image/tests/test_describe_image.py | Adds test functions and helper methods for image description. |
examples/graphic_image/conftest.py | Provides environment setup and modifies sys.path for tests. |
examples/graphic_image/readme.md | Documents local setup, dependency installation, and testing. |
.github/workflows/cat-test-examples.yml | Updates workflow steps and exit codes to verify environment vars. |
Files not reviewed (1)
- examples/graphic_image/.env.example: Language not supported
Comments suppressed due to low confidence (1)
examples/graphic_image/tests/test_describe_image.py:62
- [nitpick] Consider adding additional assertions to verify that 'description' is not only non-null but also non-empty, which would improve test coverage and robustness.
assert description is not None
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
some people think that this may not be an appropriate image
add initial image test fixture