Skip to content
Snippets Groups Projects
Commit 73670293 authored by Marco Matthies's avatar Marco Matthies
Browse files

Extend tests for switchable crop models

parent 8dee452d
No related branches found
No related tags found
No related merge requests found
...@@ -6,9 +6,16 @@ ...@@ -6,9 +6,16 @@
const TESTPARAM_ALMASS = joinpath(pkgdir(Persefone), "test", "test_parameters_almass.toml") const TESTPARAM_ALMASS = joinpath(pkgdir(Persefone), "test", "test_parameters_almass.toml")
const TESTPARAM_SIMPLECROP = joinpath(pkgdir(Persefone), "test", "test_parameters_simplecrop.toml") const TESTPARAM_SIMPLECROP = joinpath(pkgdir(Persefone), "test", "test_parameters_simplecrop.toml")
@testset "Model initialisation" begin #"Model initialisation" begin
for paramfile in (TESTPARAM_ALMASS, TESTPARAM_SIMPLECROP) @testset for paramfile in (TESTPARAM_ALMASS, TESTPARAM_SIMPLECROP)
@testset "Model initialisation" begin
model = initialise(paramfile) model = initialise(paramfile)
@test model isa AgricultureModel @test model isa AgricultureModel
end end
@testset "Time step" begin
model = initialise(paramfile)
stepsimulation!(model)
@test model isa AgricultureModel
end
end end
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment