File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -104,13 +104,13 @@ class HubApiTests: XCTestCase {
104
104
105
105
func testGetFileMetadataBlobPath( ) async throws {
106
106
do {
107
- let url = URL ( string: " https://huggingface.co/coreml-projects/Llama-2-7b-chat-coreml/blob /main/config.json " )
107
+ let url = URL ( string: " https://huggingface.co/coreml-projects/Llama-2-7b-chat-coreml/resolve /main/config.json " )
108
108
let metadata = try await Hub . getFileMetadata ( fileURL: url!)
109
109
110
- XCTAssertEqual ( metadata. commitHash, nil )
111
- XCTAssertTrue ( metadata. etag != nil && metadata. etag!. hasPrefix ( " 10841- " ) )
110
+ XCTAssertNotNil ( metadata. commitHash)
111
+ XCTAssertTrue ( metadata. etag != nil && metadata. etag!. hasPrefix ( " d6ceb9 " ) )
112
112
XCTAssertEqual ( metadata. location, url? . absoluteString)
113
- XCTAssertEqual ( metadata. size, 67649 )
113
+ XCTAssertEqual ( metadata. size, 163 )
114
114
} catch {
115
115
XCTFail ( " \( error) " )
116
116
}
You can’t perform that action at this time.
0 commit comments