-
Notifications
You must be signed in to change notification settings - Fork 31.3k
Stop inheriting tests (again) #42247
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
Conversation
|
[For maintainers] Suggested jobs to run (before merge) run-slow: cohere2, granitemoehybrid |
|
The docs for this PR live here. All of your documentation changes will be reflected on that endpoint. The docs are available until 30 days after the last update. |
tengomucho
left a comment
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.
LGTM
|
|
||
| @require_torch | ||
| class GraniteMoeHybridModelTest(BambaModelTest, GenerationTesterMixin, unittest.TestCase): | ||
| class GraniteMoeHybridModelTest(ModelTesterMixin, GenerationTesterMixin, PipelineTesterMixin, unittest.TestCase): |
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.
Perhaps add a comment explaining why it is better not to inherit from another test, so if someone is tempted to do the same, that someone will have a hint
ydshieh
left a comment
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.
thx!
This is a follow up to #42192 - after discussion, we decided not to use
deland instead to avoid importingTestCaseclasses.