Skip to content

[Test] add test_model.jl#1419

Merged
odow merged 4 commits intomasterfrom
od/test-model
Jun 30, 2021
Merged

[Test] add test_model.jl#1419
odow merged 4 commits intomasterfrom
od/test-model

Conversation

@odow
Copy link
Copy Markdown
Member

@odow odow commented Jun 29, 2021

Part of #1398

@odow odow added the Submodule: Tests About the Tests submodule label Jun 29, 2021
@odow odow mentioned this pull request Jun 29, 2021
22 tasks
@test_throws(
MOI.UnsupportedAttribute,
MOI.copy_to(model, BadModelAttributeModel()),
)
Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@blegat I found test GLPK fails! It was trying to access ObjectiveFunction attribute, despite the fact that the model does not list in in the ListOfModelAttributesSet. Hurrah for full testing from modellike.

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

julia> @testset "MOI" begin
           MOI.Test.runtests(
               GLPK.Optimizer(),
               MOI.Test.Config(),
               exclude = [
                   # GLPK treats this one as "INVALID_MODEL"
                   "test_constraint_ZeroOne_bounds_3",
               ]
           )
       end
Test Summary: | Pass  Total
MOI           |  476    476
[...]

@odow odow merged commit 9395bff into master Jun 30, 2021
@odow odow deleted the od/test-model branch June 30, 2021 21:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Submodule: Tests About the Tests submodule

Development

Successfully merging this pull request may close these issues.

1 participant