File tree 1 file changed +16
-3
lines changed
1 file changed +16
-3
lines changed Original file line number Diff line number Diff line change @@ -767,12 +767,25 @@ def test_PackageInfo():
767
767
# str
768
768
assert str (pkg ) == "pkg-1.0-bld"
769
769
770
- # from_url
771
- pkg = PackageInfo .from_url ("https://repo.mamba.pm/conda-forge/linux-64/bar-5.1-xld.conda#01234" )
770
+ # from_url with md5
771
+ pkg = PackageInfo .from_url (
772
+ "https://repo.mamba.pm/conda-forge/linux-64/bar-5.1-xld.conda"
773
+ "#01234012340123401234012340123401"
774
+ )
775
+ assert pkg .name == "bar"
776
+ assert pkg .version == "5.1"
777
+ assert pkg .build_string == "xld"
778
+ assert pkg .md5 == "01234012340123401234012340123401"
779
+
780
+ # from_url with sha256
781
+ pkg = PackageInfo .from_url (
782
+ "https://repo.mamba.pm/conda-forge/linux-64/bar-5.1-xld.conda"
783
+ "#0123401234012340123401234012340101234012340123401234012340123401"
784
+ )
772
785
assert pkg .name == "bar"
773
786
assert pkg .version == "5.1"
774
787
assert pkg .build_string == "xld"
775
- assert pkg .md5 == "01234 "
788
+ assert pkg .md5 == "0123401234012340123401234012340101234012340123401234012340123401 "
776
789
777
790
# getters and setters
778
791
pkg .name = "foo"
You can’t perform that action at this time.
0 commit comments