Skip to content

Commit

Permalink
Do not use modelId + remove some self.assert (#2405)
Browse files Browse the repository at this point in the history
* Do not use modelId + remove some self.assert

* fix failed test
  • Loading branch information
Wauplin authored Jul 22, 2024
1 parent ac400fe commit 78542a4
Show file tree
Hide file tree
Showing 4 changed files with 84 additions and 91 deletions.
4 changes: 2 additions & 2 deletions tests/test_fastai_integration.py
Original file line number Diff line number Diff line change
Expand Up @@ -86,8 +86,8 @@ def test_push_to_hub_and_from_pretrained_fastai(self):

push_to_hub_fastai(learner=dummy_model, repo_id=repo_id, token=TOKEN, config=dummy_config)
model_info = api.model_info(repo_id)
self.assertEqual(model_info.modelId, repo_id)
assert model_info.id == repo_id
loaded_model = from_pretrained_fastai(repo_id)
self.assertEqual(dummy_model.show_training_loop(), loaded_model.show_training_loop())
assert dummy_model.show_training_loop() == loaded_model.show_training_loop()

api.delete_repo(repo_id=repo_id)
Loading

0 comments on commit 78542a4

Please sign in to comment.