Skip to content

Removed modeler.primitives from unit tests and examples as it is deprecated. #837

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Feb 8, 2022

Conversation

maxcapodi78
Copy link
Collaborator

…ecated and now any methods from primitives can be called directly from modeler

eg. modeler.primitives.create_box becomes modeler.create_box

…ecated and now any methods from primitives can be called directly from modeler

eg. modeler.primitives.create_box becomes modeler.create_box
@codecov
Copy link

codecov bot commented Feb 8, 2022

Codecov Report

Merging #837 (3124883) into main (0451aef) will increase coverage by 0.17%.
The diff coverage is 92.25%.

@@            Coverage Diff             @@
##             main     #837      +/-   ##
==========================================
+ Coverage   77.38%   77.55%   +0.17%     
==========================================
  Files         128      128              
  Lines       34840    35178     +338     
==========================================
+ Hits        26961    27284     +323     
- Misses       7879     7894      +15     

@maxcapodi78 maxcapodi78 requested a review from MaxJPRey February 8, 2022 11:06
Copy link
Contributor

@Alberto-DM Alberto-DM left a comment

Choose a reason for hiding this comment

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

I made one comment. Other than that it looks good to me.

@@ -124,14 +124,14 @@ def test_create_regular_polygon(self):

@pytest.mark.skipif(config["build_machine"] or is_ironpython, reason="Not running in ironpython")
def test_plot(self):
self.aedtapp.modeler.primitives.create_regular_polygon([0, 0, 0], [0, 2, 0])
self.aedtapp.modeler.primitives.create_regular_polygon(
self.aedtapp.modeler.create_regular_polygon([0, 0, 0], [0, 2, 0])
Copy link
Contributor

Choose a reason for hiding this comment

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

There are some lines, like this one, without an assert. Any reason why there is no assert?
They are notified by codecov.
Maybe we can exclude all unit tests from code coverage.

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

because those one are needed to the test assertion which is a couple of lines below

@MaxJPRey MaxJPRey changed the title Removed modeler.primitives from unit tests and examples as it is depr… Removed modeler.primitives from unit tests and examples as it is deprecated. Feb 8, 2022
@MaxJPRey
Copy link
Collaborator

MaxJPRey commented Feb 8, 2022

LGTM. Well Done @maxcapodi78 .

@maxcapodi78 maxcapodi78 merged commit ced9f2f into main Feb 8, 2022
@maxcapodi78 maxcapodi78 deleted the Fix/UT_primitives_cleanup branch February 8, 2022 13:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants