Skip to content

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

Draft
wants to merge 7 commits into
base: main
Choose a base branch
from

Conversation

austinworks
Copy link
Contributor

add initial image test fixture

@tkersey tkersey requested a review from Copilot March 19, 2025 03:04
Copy link
Contributor

@Copilot Copilot AI left a 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

Copy link
Member

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

@paulz paulz requested a review from jwilger March 25, 2025 22:37
@paulz paulz marked this pull request as draft March 27, 2025 20:36
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.

2 participants