Skip to content

Commit

Permalink
fix test after cherry
Browse files Browse the repository at this point in the history
  • Loading branch information
Wauplin committed Jun 14, 2024
1 parent 54b4514 commit 588f12c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tests/test_hub_mixin_pytorch.py
Original file line number Diff line number Diff line change
Expand Up @@ -325,7 +325,7 @@ def test_generate_model_card(self):
assert card.data.tags == ["model_hub_mixin", "pytorch_model_hub_mixin", "tag1", "tag2"]

# Model card template has been used
assert "This is a dummy model card." in str(card)
assert "This is a dummy model card with kwargs." in str(card)

model.save_pretrained(self.cache_dir)
card_reloaded = ModelCard.load(self.cache_dir / "README.md")
Expand Down

0 comments on commit 588f12c

Please sign in to comment.