File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1+ 3
2+ Water
3+ H 0.7493682 0.0000000 0.4424329
4+ O 0.0000000 0.0000000 -0.1653507
5+ H -0.7493682 0.0000000 0.4424329
Original file line number Diff line number Diff line change @@ -13,3 +13,13 @@ def test_download_file():
1313 with open (Path ("data-test" )/ "LiFePO4_supercell.cif" , "rb" ) as f :
1414 h = hashlib .file_digest (f , "sha256" )
1515 assert h .hexdigest () == "ea9a538dde5bb84b92e9478dbcc078bb560b28a4f5e4b0469d416bff36be272e"
16+
17+ def test_download_files ():
18+ files = ["LiFePO4_supercell.cif" ,"h2o.xyz" ]
19+ sha256 = {'LiFePO4_supercell.cif' :"ea9a538dde5bb84b92e9478dbcc078bb560b28a4f5e4b0469d416bff36be272e" ,
20+ 'h2o.xyz' : "522ab1d36d213e48ab6e08517ec3f648c378d4b9efd257feadc64a1d8f3e66d6" }
21+ get_data (filename = files ,,folder = "data-test" )
22+ for f in files :
23+ with open (Path ("data-test" )/ f , "rb" ) as f :
24+ h = hashlib .file_digest (f , "sha256" )
25+ assert h .hexdigest () == sha256 ['f' ]
You can’t perform that action at this time.
0 commit comments