You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: crates/uv-client/src/html.rs
+33-11Lines changed: 33 additions & 11 deletions
Original file line number
Diff line number
Diff line change
@@ -305,6 +305,7 @@ mod tests {
305
305
),
306
306
sha384: None,
307
307
sha512: None,
308
+
blake2b: None,
308
309
},
309
310
requires_python: None,
310
311
size: None,
@@ -361,6 +362,7 @@ mod tests {
361
362
sha256: None,
362
363
sha384: None,
363
364
sha512: None,
365
+
blake2b: None,
364
366
},
365
367
requires_python: None,
366
368
size: None,
@@ -420,6 +422,7 @@ mod tests {
420
422
),
421
423
sha384: None,
422
424
sha512: None,
425
+
blake2b: None,
423
426
},
424
427
requires_python: None,
425
428
size: None,
@@ -476,6 +479,7 @@ mod tests {
476
479
),
477
480
sha384: None,
478
481
sha512: None,
482
+
blake2b: None,
479
483
},
480
484
requires_python: None,
481
485
size: None,
@@ -532,6 +536,7 @@ mod tests {
532
536
),
533
537
sha384: None,
534
538
sha512: None,
539
+
blake2b: None,
535
540
},
536
541
requires_python: None,
537
542
size: None,
@@ -558,7 +563,7 @@ mod tests {
558
563
"#;
559
564
let base = Url::parse("https://download.pytorch.org/whl/jinja2/").unwrap();
560
565
let result = SimpleHtml::parse(text,&base).unwrap();
561
-
insta::assert_debug_snapshot!(result, @r###"
566
+
insta::assert_debug_snapshot!(result, @r#"
562
567
SimpleHtml {
563
568
base: BaseUrl(
564
569
Url {
@@ -586,6 +591,7 @@ mod tests {
586
591
sha256: None,
587
592
sha384: None,
588
593
sha512: None,
594
+
blake2b: None,
589
595
},
590
596
requires_python: None,
591
597
size: None,
@@ -595,7 +601,7 @@ mod tests {
595
601
},
596
602
],
597
603
}
598
-
"###);
604
+
"#);
599
605
}
600
606
601
607
#[test]
@@ -612,7 +618,7 @@ mod tests {
612
618
"#;
613
619
let base = Url::parse("https://download.pytorch.org/whl/jinja2/").unwrap();
614
620
let result = SimpleHtml::parse(text,&base).unwrap();
615
-
insta::assert_debug_snapshot!(result, @r###"
621
+
insta::assert_debug_snapshot!(result, @r#"
616
622
SimpleHtml {
617
623
base: BaseUrl(
618
624
Url {
@@ -640,6 +646,7 @@ mod tests {
640
646
sha256: None,
641
647
sha384: None,
642
648
sha512: None,
649
+
blake2b: None,
643
650
},
644
651
requires_python: None,
645
652
size: None,
@@ -649,7 +656,7 @@ mod tests {
649
656
},
650
657
],
651
658
}
652
-
"###);
659
+
"#);
653
660
}
654
661
655
662
#[test]
@@ -770,6 +777,7 @@ mod tests {
770
777
sha256: None,
771
778
sha384: None,
772
779
sha512: None,
780
+
blake2b: None,
773
781
},
774
782
requires_python: None,
775
783
size: None,
@@ -796,7 +804,7 @@ mod tests {
796
804
"#;
797
805
let base = Url::parse("https://download.pytorch.org/whl/jinja2/").unwrap();
798
806
let result = SimpleHtml::parse(text,&base).unwrap();
799
-
insta::assert_debug_snapshot!(result, @r###"
807
+
insta::assert_debug_snapshot!(result, @r#"
800
808
SimpleHtml {
801
809
base: BaseUrl(
802
810
Url {
@@ -824,6 +832,7 @@ mod tests {
824
832
sha256: None,
825
833
sha384: None,
826
834
sha512: None,
835
+
blake2b: None,
827
836
},
828
837
requires_python: None,
829
838
size: None,
@@ -833,7 +842,7 @@ mod tests {
833
842
},
834
843
],
835
844
}
836
-
"###);
845
+
"#);
837
846
}
838
847
839
848
#[test]
@@ -879,6 +888,7 @@ mod tests {
879
888
sha256: None,
880
889
sha384: None,
881
890
sha512: None,
891
+
blake2b: None,
882
892
},
883
893
requires_python: None,
884
894
size: None,
@@ -935,6 +945,7 @@ mod tests {
935
945
sha256: None,
936
946
sha384: None,
937
947
sha512: None,
948
+
blake2b: None,
938
949
},
939
950
requires_python: None,
940
951
size: None,
@@ -962,7 +973,7 @@ mod tests {
962
973
"#;
963
974
let base = Url::parse("https://download.pytorch.org/whl/jinja2/").unwrap();
964
975
let result = SimpleHtml::parse(text,&base).unwrap_err();
965
-
insta::assert_snapshot!(result, @"Unsupported hash algorithm (expected one of: `md5`, `sha256`, `sha384`, or `sha512`) on: `blake2=6088930bfe239f0e6710546ab9c19c9ef35e29792895fed6e6e31a023a182a61`");
976
+
insta::assert_snapshot!(result, @"Unsupported hash algorithm (expected one of: `md5`, `sha256`, `sha384`, `sha512`, or `blake2b`) on: `blake2=6088930bfe239f0e6710546ab9c19c9ef35e29792895fed6e6e31a023a182a61`");
966
977
}
967
978
968
979
#[test]
@@ -980,7 +991,7 @@ mod tests {
980
991
let base = Url::parse("https://storage.googleapis.com/jax-releases/jax_cuda_releases.html")
981
992
.unwrap();
982
993
let result = SimpleHtml::parse(text,&base).unwrap();
983
-
insta::assert_debug_snapshot!(result, @r###"
994
+
insta::assert_debug_snapshot!(result, @r#"
984
995
SimpleHtml {
985
996
base: BaseUrl(
986
997
Url {
@@ -1008,6 +1019,7 @@ mod tests {
1008
1019
sha256: None,
1009
1020
sha384: None,
1010
1021
sha512: None,
1022
+
blake2b: None,
1011
1023
},
1012
1024
requires_python: None,
1013
1025
size: None,
@@ -1023,6 +1035,7 @@ mod tests {
1023
1035
sha256: None,
1024
1036
sha384: None,
1025
1037
sha512: None,
1038
+
blake2b: None,
1026
1039
},
1027
1040
requires_python: None,
1028
1041
size: None,
@@ -1032,7 +1045,7 @@ mod tests {
1032
1045
},
1033
1046
],
1034
1047
}
1035
-
"###);
1048
+
"#);
1036
1049
}
1037
1050
1038
1051
/// Test for AWS Code Artifact
@@ -1090,6 +1103,7 @@ mod tests {
1090
1103
),
1091
1104
sha384: None,
1092
1105
sha512: None,
1106
+
blake2b: None,
1093
1107
},
1094
1108
requires_python: None,
1095
1109
size: None,
@@ -1107,6 +1121,7 @@ mod tests {
1107
1121
),
1108
1122
sha384: None,
1109
1123
sha512: None,
1124
+
blake2b: None,
1110
1125
},
1111
1126
requires_python: None,
1112
1127
size: None,
@@ -1124,6 +1139,7 @@ mod tests {
1124
1139
),
1125
1140
sha384: None,
1126
1141
sha512: None,
1142
+
blake2b: None,
1127
1143
},
1128
1144
requires_python: Some(
1129
1145
Ok(
@@ -1190,6 +1206,7 @@ mod tests {
1190
1206
),
1191
1207
sha384: None,
1192
1208
sha512: None,
1209
+
blake2b: None,
1193
1210
},
1194
1211
requires_python: Some(
1195
1212
Ok(
@@ -1232,7 +1249,7 @@ mod tests {
1232
1249
let base = Url::parse("https://account.d.codeartifact.us-west-2.amazonaws.com/pypi/shared-packages-pypi/simple/flask/")
1233
1250
.unwrap();
1234
1251
let result = SimpleHtml::parse(text,&base).unwrap();
0 commit comments