[tests] remove deprecated tests for model loading (#29450)

* gix

* fix style

* remove equivalent tests

* add back for image_processor

* remove again
This commit is contained in:
Fanli Lin
2024-03-15 22:18:41 +08:00
committed by GitHub
parent 0e4a1c3401
commit c1993e68b8
6 changed files with 0 additions and 62 deletions

View File

@@ -248,12 +248,6 @@ class ConfigTestUtils(unittest.TestCase):
# This check we did call the fake head request
mock_head.assert_called()
def test_legacy_load_from_url(self):
# This test is for deprecated behavior and can be removed in v5
_ = BertConfig.from_pretrained(
"https://huggingface.co/hf-internal-testing/tiny-random-bert/resolve/main/config.json"
)
def test_local_versioning(self):
configuration = AutoConfig.from_pretrained("google-bert/bert-base-cased")
configuration.configuration_files = ["config.4.0.0.json"]