Skip to content
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

Update test_generation.py #1

Merged
merged 1 commit into from
Nov 20, 2024
Merged

Update test_generation.py #1

merged 1 commit into from
Nov 20, 2024

Conversation

borgesenioc
Copy link
Owner

Refactor test_generation.py: Parameterize text model tests and add edge case

  • Used @pytest.mark.parametrize to simplify and reuse dialog tests in TestTextModelInference.
  • Added a new test case for handling empty dialog inputs to improve edge case coverage.
  • Maintained the vision model tests in skipped state with @unittest.skip and @pytest.mark.skip.
  • Improved overall readability and modularity of the test file.

Refactor test_generation.py: Parameterize text model tests and add edge case

- Used @pytest.mark.parametrize to simplify and reuse dialog tests in TestTextModelInference.
- Added a new test case for handling empty dialog inputs to improve edge case coverage.
- Maintained the vision model tests in skipped state with @unittest.skip and @pytest.mark.skip.
- Improved overall readability and modularity of the test file.
@borgesenioc borgesenioc merged commit 9bcd80e into main Nov 20, 2024
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.

1 participant