Skip to content

Commit

Permalink
used skip instead of broken for quadratic absolute test
Browse files Browse the repository at this point in the history
  • Loading branch information
Jingru923 committed Feb 13, 2024
1 parent 1d411c6 commit 7d6ea22
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions core/test/allocation_test.jl
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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))],
Expand Down

0 comments on commit 7d6ea22

Please sign in to comment.