Commit e37aefd6 authored by Miroslav Kratochvil's avatar Miroslav Kratochvil
Browse files

import `download` from Downloads

parent 3500090e
...@@ -13,3 +13,9 @@ Test = "8dfed614-e22c-5e08-85e1-65c5234f0b40" ...@@ -13,3 +13,9 @@ Test = "8dfed614-e22c-5e08-85e1-65c5234f0b40"
[compat] [compat]
julia = "1" julia = "1"
[extras]
Downloads = "f43a241f-c20a-4ad4-852c-f6b1247861c6"
[targets]
test = ["Downloads"]
...@@ -29,7 +29,7 @@ sbmlfiles = [ ...@@ -29,7 +29,7 @@ sbmlfiles = [
@testset "Loading of models from various sources" begin @testset "Loading of models from various sources" begin
for (sbmlfile, url, hash, expected_mets, expected_rxns) in sbmlfiles for (sbmlfile, url, hash, expected_mets, expected_rxns) in sbmlfiles
if !isfile(sbmlfile) if !isfile(sbmlfile)
download(url, sbmlfile) Downloads.download(url, sbmlfile)
end end
cksum = bytes2hex(sha256(open(sbmlfile))) cksum = bytes2hex(sha256(open(sbmlfile)))
......
using Test, SHA, SparseArrays using Test, SHA, SparseArrays, Downloads
using SBML using SBML
using SBML: Model, Reaction, Species using SBML: Model, Reaction, Species
import Pkg import Pkg
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment