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

Unittests for meta- and resultnode #20

Merged
merged 1 commit into from
Nov 9, 2023
Merged

Unittests for meta- and resultnode #20

merged 1 commit into from
Nov 9, 2023

Conversation

rayklauck
Copy link
Collaborator

@rayklauck rayklauck commented Nov 9, 2023

Adding unittests for MetaNode and ResultNode.

@tobiasah tobiasah self-requested a review November 9, 2023 12:05
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.

LGTM.

I added a few comments. But the overall changes are very good.

A few general things:

  • I think a few sporadic docstrings in the conftest.py would help the overall readability
  • I would also add return type hints for all fixtures, This will simplify the refactorings later on.
  • Often there are more empty lines than needed. Can you check that there are no unnecessary empty lines? (two lines between classes and static functions, a single line between functions within classes.)
  • Can you add a description to the MR
  • Can you make a better commit message? (https://cbea.ms/git-commit/)

tests/nodetree/conftest.py Outdated Show resolved Hide resolved
tests/nodetree/conftest.py Outdated Show resolved Hide resolved
tests/nodetree/test_node_unit.py Outdated Show resolved Hide resolved
tests/nodetree/test_node_unit.py Show resolved Hide resolved
tests/nodetree/test_node_unit.py Outdated Show resolved Hide resolved
tests/nodetree/test_node_unit.py Outdated Show resolved Hide resolved
tests/nodetree/test_node_unit.py Outdated Show resolved Hide resolved
tests/nodetree/test_node_unit.py Outdated Show resolved Hide resolved
tests/nodetree/test_node_unit.py Show resolved Hide resolved
tests/nodetree/test_node_unit.py Outdated Show resolved Hide resolved
@rayklauck rayklauck force-pushed the rayk/node_tests branch 2 times, most recently from 3477831 to a469177 Compare November 9, 2023 16:17
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.

🥇

@codecov-commenter
Copy link

codecov-commenter commented Nov 9, 2023

Codecov Report

Attention: 4 lines in your changes are missing coverage. Please review.

Comparison is base (5700e8e) 100.00% compared to head (f2ad5b7) 85.44%.

Additional details and impacted files
@@             Coverage Diff              @@
##              main      #20       +/-   ##
============================================
- Coverage   100.00%   85.44%   -14.56%     
============================================
  Files           16       16               
  Lines         1292     1292               
  Branches       218      218               
============================================
- Hits          1292     1104      -188     
- Misses           0      179      +179     
- Partials         0        9        +9     
Files Coverage Δ
src/labone/nodetree/node.py 63.21% <63.63%> (-36.79%) ⬇️

... and 3 files with indirect coverage changes

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

use mocking and fixtures for cleaner unittests.
Old tests are being replaced.
@rayklauck rayklauck merged commit fb2b3ad into main Nov 9, 2023
10 checks passed
@tobiasah tobiasah deleted the rayk/node_tests 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