From 736702939e8d7ed654c5651d554fe74412fb40bc Mon Sep 17 00:00:00 2001 From: Marco Matthies <71844+marcom@users.noreply.github.com> Date: Wed, 17 Jul 2024 21:50:01 +0200 Subject: [PATCH] Extend tests for switchable crop models --- test/crop_tests.jl | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/test/crop_tests.jl b/test/crop_tests.jl index 53ee874..b2d12fb 100644 --- a/test/crop_tests.jl +++ b/test/crop_tests.jl @@ -6,9 +6,16 @@ const TESTPARAM_ALMASS = joinpath(pkgdir(Persefone), "test", "test_parameters_almass.toml") const TESTPARAM_SIMPLECROP = joinpath(pkgdir(Persefone), "test", "test_parameters_simplecrop.toml") -@testset "Model initialisation" begin - for paramfile in (TESTPARAM_ALMASS, TESTPARAM_SIMPLECROP) +#"Model initialisation" begin +@testset for paramfile in (TESTPARAM_ALMASS, TESTPARAM_SIMPLECROP) + @testset "Model initialisation" begin model = initialise(paramfile) @test model isa AgricultureModel end + @testset "Time step" begin + model = initialise(paramfile) + stepsimulation!(model) + @test model isa AgricultureModel + end end + -- GitLab