[Core] Adding missing checks to test_dofs
and document it
#11568
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
📝 Description
This PR adds testing for the
IsFixed
methods intest_dofs
. Also adds a test forFree
method.In addition, the PR adds documentation to the following methods from
test_dofs
:SetUpTestModelPart Method: A method called
__SetUpTestModelPart
is added to set up a test ModelPart with nodes and DOFs.testDofExport Method: This test case checks the export of DOF information. It creates a ModelPart with nodes and DOFs, exports and manipulates DOFs, and performs various assertions.
testDofListValues Method: This test case focuses on DOF list values and manipulation. It creates a ModelPart with nodes and DOFs, creates a DOF list, sets and retrieves values, and performs assertions.
testDofListAppend Method: This test case checks the appending of DOFs to a list. It creates a ModelPart with nodes and DOFs and appends DOFs to a list, asserting the length of the list.
testDofListUnique Method: This test case examines making a DOF list unique. It creates a ModelPart with nodes and DOFs, appends multiple copies of the same DOF to a list, makes the list unique, and asserts its length.
🆕 Changelog