Skip to content

Commit 1811d71

Browse files
committed
Add missing @require in tests
1 parent 3f21373 commit 1811d71

File tree

1 file changed

+15
-0
lines changed

1 file changed

+15
-0
lines changed

src/Test/test_model.jl

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -580,6 +580,11 @@ function test_model_copy_to_UnsupportedConstraint(
580580
model::MOI.ModelLike,
581581
::Config{T},
582582
) where {T}
583+
@requires MOI.supports_constraint(
584+
model,
585+
MOI.VariableIndex,
586+
MOI.EqualTo{T},
587+
)
583588
@test !MOI.supports_constraint(
584589
model,
585590
MOI.VariableIndex,
@@ -608,6 +613,11 @@ function test_model_copy_to_UnsupportedAttribute(
608613
model::MOI.ModelLike,
609614
::Config{T},
610615
) where {T}
616+
@requires MOI.supports_constraint(
617+
model,
618+
MOI.VariableIndex,
619+
MOI.EqualTo{T},
620+
)
611621
# ModelAttribute
612622
@test !MOI.supports(model, UnknownModelAttribute())
613623
@test_throws(
@@ -747,6 +757,11 @@ function test_model_ScalarFunctionConstantNotZero(
747757
config::Config{T},
748758
) where {T}
749759
@requires _supports(config, MOI.ScalarFunctionConstantNotZero)
760+
@requires MOI.supports_constraint(
761+
model,
762+
MOI.ScalarAffineFunction{T},
763+
MOI.EqualTo{T},
764+
)
750765
function _error(S, value)
751766
F = MOI.ScalarAffineFunction{T}
752767
return MOI.ScalarFunctionConstantNotZero{T,F,S}(value)

0 commit comments

Comments
 (0)