Skip to content

Commit fd7f7b2

Browse files
committed
test: check models loaded from BMA with step!
1 parent 28ddeed commit fd7f7b2

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

test/qn_test.jl

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -142,14 +142,16 @@ end
142142
@test_throws r"no activators or inhibitors" default_target_function(0, 4)
143143
end
144144

145-
@testitem "Load from BMA" begin
145+
@testitem "Load from BMA" setup = [RandomSetup] begin
146146
using JSON
147+
using DynamicalSystemsBase: step!
147148
bma_models_path = joinpath(@__DIR__, "resources", "bma_models")
148149
good_models = joinpath(bma_models_path, "well_formed_examples")
149150

150151
for model_path in readdir(good_models; join = true)
151152
qn = QN(model_path)
152153
@test qn isa GraphDynamicalSystem
154+
step!(create_qn_system(qn), 100)
153155
end
154156

155157
bad_models = joinpath(bma_models_path, "error_examples")

0 commit comments

Comments
 (0)