Skip to content

Commit

Permalink
fix test
Browse files Browse the repository at this point in the history
  • Loading branch information
Wauplin committed Jun 5, 2024
1 parent a17f836 commit e43874a
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 @@ -309,7 +309,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" in str(card)

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

0 comments on commit e43874a

Please sign in to comment.