-
Notifications
You must be signed in to change notification settings - Fork 8
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
DM-43103: Add ObservationInfo.can_see_sky property #73
Conversation
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #73 +/- ##
==========================================
+ Coverage 79.70% 88.24% +8.54%
==========================================
Files 36 37 +1
Lines 3148 3097 -51
Branches 672 658 -14
==========================================
+ Hits 2509 2733 +224
+ Misses 508 247 -261
+ Partials 131 117 -14 ☔ View full report in Codecov by Sentry. |
This lets click override stdout for testing, which it can't do if sys.stdout is forced to be the default.
Defaulting to sys.stderr hides it from click. Rather than trying to use click.echo replace it with a logger (which will default to using sys.stderr).
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.
Looks fine, but I am wondering about the few error cases that coverage says aren't covered. Also, does this have any effect on the race condition that we see sometimes in the tests? (That may have been fixed elsewhere, I don't recall...)
I added 5% coverage so I'm going to call that a win. This has no effect on the test failure we were getting. On a previous PR I made the test more expressive in its failure output so we would know why it is failing but I don't think it's failed since I added that. |
This will stop it complaining about some lines that are never going to be hit in a test.
Ok. I added extra coverage and stopped it complaining about some lines that were never going to be tested. |
No description provided.