Skip to content

Commit 0f2133b

Browse files
authored
fix: fix test_get_hf_file_metadata_from_a_lfs_file as since xet migration (#2972)
Signed-off-by: Adrien <[email protected]>
1 parent 6378820 commit 0f2133b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tests/test_file_download.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -505,7 +505,7 @@ def test_get_hf_file_metadata_from_a_lfs_file(self) -> None:
505505
url = hf_hub_url("gpt2", filename="tf_model.h5")
506506
metadata = get_hf_file_metadata(url)
507507

508-
self.assertIn("cdn-lfs", metadata.location) # Redirection
508+
self.assertIn("xethub.hf.co", metadata.location) # Redirection
509509
self.assertEqual(metadata.size, 497933648) # Size of LFS file, not pointer
510510

511511
def test_file_consistency_check_fails_regular_file(self):

0 commit comments

Comments
 (0)