feat(tests): run inference tests only on selected model type#626
Open
tybulewicz wants to merge 2 commits into
Open
feat(tests): run inference tests only on selected model type#626tybulewicz wants to merge 2 commits into
tybulewicz wants to merge 2 commits into
Conversation
Contributor
There was a problem hiding this comment.
Pull request overview
This PR adds a pytest CLI filter to the functional inference tests so contributors can run the inference suite only for a selected wrapper/model type (and its subclasses), reducing runtime and focusing validation.
Changes:
- Adds a new pytest CLI option to select which model type(s) to run inference tests for.
- Introduces a session-scoped fixture that resolves the requested model class and skips non-matching parametrized cases.
Reviewed changes
Copilot reviewed 2 out of 2 changed files in this pull request and generated 2 comments.
| File | Description |
|---|---|
| model_api/tests/functional/test_inference.py | Adds a fixture-driven model-type filter and applies it to test_image_models. |
| model_api/tests/functional/conftest.py | Registers the new CLI option used to select the model type filter. |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What does this PR do?
This PR adds a pytest CLI filter to the functional inference tests so contributors can run the inference suite only for a selected wrapper/model type (and its subclasses), reducing runtime and focusing validation.
Fixes #598
Before submitting