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

Written tests for get_id_from_key method. #115

Merged
merged 2 commits into from
Oct 30, 2023

Conversation

khalford
Copy link
Member

Added tests for the above method and changed some enums stuff in the code. Removed attributes from netbox_get_id class as these enums will not be changed therefore do not need to be assigned.

Added tests for the above method and changed some enums stuff in the
code.
@codecov-commenter
Copy link

codecov-commenter commented Oct 30, 2023

Codecov Report

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

Comparison is base (f2d148d) 90.66% compared to head (3c58d50) 93.72%.

Additional details and impacted files
@@            Coverage Diff             @@
##           master     #115      +/-   ##
==========================================
+ Coverage   90.66%   93.72%   +3.05%     
==========================================
  Files          12       12              
  Lines         225      239      +14     
==========================================
+ Hits          204      224      +20     
+ Misses         21       15       -6     
Files Coverage Δ
pynetbox_data_uploader/tests/test_netbox_get_id.py 100.00% <100.00%> (+28.57%) ⬆️
...tbox_data_uploader/lib/netbox_api/netbox_get_id.py 46.42% <50.00%> (+9.76%) ⬆️

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

Copy link
Contributor

@anish-mudaraddi anish-mudaraddi left a comment

Choose a reason for hiding this comment

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

LGTM - get_id should be split up in future

@khalford khalford merged commit c708d0a into master Oct 30, 2023
4 checks passed
@khalford khalford deleted the netbox_get_id_from_key_tests branch October 30, 2023 15:55
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.

4 participants