Skip to content
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

Unittesting Node and LeafNode #24

Merged
merged 1 commit into from
Nov 13, 2023
Merged

Unittesting Node and LeafNode #24

merged 1 commit into from
Nov 13, 2023

Conversation

rayklauck
Copy link
Collaborator

  • Writing verbose tests and bringing the coverage on these classes to 100%.
  • Also extending previous tests to meet the coverage.
  • Fixing details in nodetree implementation.

@rayklauck rayklauck requested a review from tobiasah November 10, 2023 15:33
@rayklauck rayklauck self-assigned this Nov 10, 2023
@codecov-commenter
Copy link

Codecov Report

All modified and coverable lines are covered by tests ✅

Comparison is base (fb2b3ad) 85.44% compared to head (1e7ba5f) 88.54%.
Report is 1 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff             @@
##             main      #24      +/-   ##
==========================================
+ Coverage   85.44%   88.54%   +3.09%     
==========================================
  Files          16       16              
  Lines        1292     1292              
  Branches      218      218              
==========================================
+ Hits         1104     1144      +40     
+ Misses        179      143      -36     
+ Partials        9        5       -4     
Files Coverage Δ
src/labone/nodetree/node.py 74.71% <100.00%> (+11.49%) ⬆️

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

Copy link
Member

@tobiasah tobiasah left a comment

Choose a reason for hiding this comment

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

Only one issue + please make the linter happy


def test_raw_tree(self):
with pytest.warns(DeprecationWarning):
MockMetaNode(()).raw_tree # noqa: B018
Copy link
Member

Choose a reason for hiding this comment

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

issue: You should still test that the right value is returned

 - Writing verbose tests and bringing the
   coverage on these classes to 100%.
 - Also extending previous tests to meet the coverage.
 - Fixing details in nodetree implementation.
@rayklauck rayklauck merged commit 22ea024 into main Nov 13, 2023
8 checks passed
@tobiasah tobiasah deleted the rayk/test_node2 branch January 24, 2024 14:08
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