Skip to content

Conversation

@Rocketknight1
Copy link
Member

This is a follow up to #42192 - after discussion, we decided not to use del and instead to avoid importing TestCase classes.

@Rocketknight1 Rocketknight1 marked this pull request as ready for review November 17, 2025 17:56
@github-actions
Copy link
Contributor

[For maintainers] Suggested jobs to run (before merge)

run-slow: cohere2, granitemoehybrid

@HuggingFaceDocBuilderDev

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.

Copy link
Contributor

@tengomucho tengomucho left a 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):
Copy link
Contributor

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

Copy link
Collaborator

@ydshieh ydshieh left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

thx!

@ydshieh ydshieh merged commit 16924cd into main Nov 18, 2025
18 checks passed
@ydshieh ydshieh deleted the stop_inheriting_tests branch November 18, 2025 08:31
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.

5 participants