Commit 77c9488d authored by Mosè Giordano's avatar Mosè Giordano
Browse files

Move test files to `test/data` to keep `test` clean

parent 41a25d0d
......@@ -30,6 +30,3 @@ Manifest.toml
# vscode
/.vscode/
# Input files downloaded when running the tests
/test/*.xml
# Input files needed when running the tests will be downloaded here
/*.xml
sbmlfile = "Ec_core_flux1.xml"
sbmlfile = joinpath(@__DIR__, "data", "Ec_core_flux1.xml")
if !isfile(sbmlfile)
Downloads.download(
......
......@@ -2,7 +2,7 @@
sbmlfiles = [
# a test model from BIGG
(
"e_coli_core.xml",
joinpath(@__DIR__, "data", "e_coli_core.xml"),
"http://bigg.ucsd.edu/static/models/e_coli_core.xml",
"b4db506aeed0e434c1f5f1fdd35feda0dfe5d82badcfda0e9d1342335ab31116",
72,
......@@ -10,7 +10,7 @@ sbmlfiles = [
),
# a relatively new non-curated model from biomodels
(
"T1M1133.xml",
joinpath(@__DIR__, "data", "T1M1133.xml"),
"https://www.ebi.ac.uk/biomodels/model/download/MODEL1909260004.4?filename=T1M1133.xml",
"2b1e615558b6190c649d71052ac9e0dc1635e3ad281e541bc7d4fdf2892a5967",
2517,
......@@ -18,7 +18,7 @@ sbmlfiles = [
),
# a curated model from biomodels
(
"Dasgupta2020.xml",
joinpath(@__DIR__, "data", "Dasgupta2020.xml"),
"https://www.ebi.ac.uk/biomodels/model/download/BIOMD0000000973.3?filename=Dasgupta2020.xml",
"958b131d4df2f215dae68255433542f228601db0326d26a54efd08ddcf823489",
2,
......@@ -26,7 +26,7 @@ sbmlfiles = [
),
# a cool model with `time` from SBML testsuite
(
"sbml00852.xml",
joinpath(@__DIR__, "data", "sbml00852.xml"),
"https://raw.githubusercontent.com/sbmlteam/sbml-test-suite/master/cases/semantic/00852/00852-sbml-l3v2.xml",
"d013765aa358d265941420c2e3d81fcbc24b0aa4e9f39a8dc8852debd1addb60",
4,
......@@ -65,6 +65,6 @@ end
contains_time(x::SBML.MathApply) = any(contains_time.(x.args))
contains_time(_) = false
m = readSBML("sbml00852.xml")
m = readSBML(joinpath(@__DIR__, "data", "sbml00852.xml"))
@test all(contains_time.(r.kinetic_math for (_, r) in m.reactions))
end
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