Skip to content

[Core] Adding missing checks to test_dofs and document it#11568

Merged
loumalouomega merged 2 commits intomasterfrom
core/document-missing-check-dof-test
Sep 18, 2023
Merged

[Core] Adding missing checks to test_dofs and document it#11568
loumalouomega merged 2 commits intomasterfrom
core/document-missing-check-dof-test

Conversation

@loumalouomega
Copy link
Member

@loumalouomega loumalouomega commented Sep 15, 2023

📝 Description

This PR adds testing for the IsFixed methods in test_dofs. Also adds a test for Free method.

In addition, the PR adds documentation to the following methods from test_dofs:

  1. SetUpTestModelPart Method: A method called __SetUpTestModelPart is added to set up a test ModelPart with nodes and DOFs.

  2. 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.

  3. 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.

  4. 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.

  5. 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

@loumalouomega loumalouomega added Kratos Core Python Testing Documentation FastPR This Pr is simple and / or has been already tested and the revision should be fast labels Sep 15, 2023
@loumalouomega loumalouomega requested a review from a team as a code owner September 15, 2023 14:23
@loumalouomega loumalouomega merged commit b10d5cb into master Sep 18, 2023
@loumalouomega loumalouomega deleted the core/document-missing-check-dof-test branch September 18, 2023 07:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Documentation FastPR This Pr is simple and / or has been already tested and the revision should be fast Kratos Core Python Testing

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants