From 7d6ea22fcd4757e5baba8ce804d087678b72a721 Mon Sep 17 00:00:00 2001 From: Jingru Feng Date: Tue, 13 Feb 2024 10:11:21 +0100 Subject: [PATCH] used skip instead of broken for quadratic absolute test --- core/test/allocation_test.jl | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/core/test/allocation_test.jl b/core/test/allocation_test.jl index dd0450134..562a4351d 100644 --- a/core/test/allocation_test.jl +++ b/core/test/allocation_test.jl @@ -47,7 +47,7 @@ @test Ribasim.get_user_demand(user, NodeID(:User, 11), 2) ≈ π end -@testitem "Allocation quadratic absolute" broken = true begin +@testitem "Allocation quadratic absolute" skip = true begin using DataFrames: DataFrame using SciMLBase: successful_retcode using Ribasim: NodeID @@ -59,10 +59,10 @@ end config = Ribasim.Config(toml_path; allocation_objective_type = "quadratic_absolute") model = Ribasim.run(config) - @test successful_retcode(model) skip = true + @test successful_retcode(model) problem = model.integrator.p.allocation.allocation_models[1].problem objective = JuMP.objective_function(problem) - @test objective isa JuMP.QuadExpr skip = true # Quadratic expression + @test objective isa JuMP.QuadExpr # Quadratic expression F = problem[:F] @test JuMP.UnorderedPair{JuMP.VariableRef}( F[(NodeID(:Basin, 4), NodeID(:User, 5))],