-
Notifications
You must be signed in to change notification settings - Fork 202
Tests: improve coverage of Network #515
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
Tests: improve coverage of Network #515
Conversation
This comment was marked as outdated.
This comment was marked as outdated.
Codecov ReportAll modified and coverable lines are covered by tests ✅
❗ Your organization needs to install the Codecov GitHub app to enable full functionality. Additional details and impacted files@@ Coverage Diff @@
## master #515 +/- ##
==========================================
+ Coverage 68.86% 70.17% +1.31%
==========================================
Files 26 26
Lines 3112 3112
Branches 526 526
==========================================
+ Hits 2143 2184 +41
+ Misses 831 800 -31
+ Partials 138 128 -10 |
6fbb82a
to
37a28d6
Compare
# Will err because we're not connected to a real network. | ||
with self.assertLogs(level=logging.ERROR): | ||
self.network.add_node(2, SAMPLE_EDS, upload_eds=True) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This test can be enhanced for example by mocking canopen.sdo.SdoClient.open
to return a pre-filled StringIO buffer.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I haven't checked every detail, but the code looks sensible, clean and appears to test the relevant bits. Fine with me, let's take a closer look when something should ever fail.
Thank you for the review! |
No description provided.