Skip to content

Commit

Permalink
Comments adressed
Browse files Browse the repository at this point in the history
  • Loading branch information
SouthEndMusic committed Feb 26, 2024
1 parent c699681 commit 3d18674
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions core/test/utils_test.jl
Original file line number Diff line number Diff line change
Expand Up @@ -300,16 +300,15 @@ end
) === 1.0
end

@testitem "constrains_from_nodes" begin
@testitem "constraints_from_nodes" begin
toml_path = normpath(@__DIR__, "../../generated_testmodels/basic/ribasim.toml")
@test ispath(toml_path)
model = Ribasim.BMI.initialize(Ribasim.Model, toml_path)
model = Ribasim.Model(toml_path)
(; p) = model.integrator
constraining_types = (:pump, :outlet, :linear_resistance)

for type in Ribasim.nodefields(p)
node = getfield(p, type)
println(node)
if type in constraining_types
@test Ribasim.is_flow_constraining(node)
else
Expand Down

0 comments on commit 3d18674

Please sign in to comment.