Fix database health check endpoint#142
Conversation
Xarlos89
left a comment
There was a problem hiding this comment.
Overall a solid PR. Small catch in the tests. Good start to testing, covering the happy path. Error cases would be a nice next move.
Come join us in the discord server!
|
|
||
|
|
||
| class FakeSession: | ||
| calls = [] |
There was a problem hiding this comment.
Potentially could bleed across test state. Could be handled better by moving it to an instance attribute.
There was a problem hiding this comment.
Good catch, thanks.
You're right that using a class attribute for calls could leak state across test instances. I've updated the test helper to store calls as an instance attribute instead.
I agree that additional error-path coverage would be valuable as a follow-up. For this PR I focused on validating the endpoint selection logic that fixes #135.
Also, thanks for the Discord invite. Do you have a link you can share?
Thanks for the review.
There was a problem hiding this comment.
|
Follow-up verification:
|
|
Hey @BeauDevCode Looks like pre-commit checks are failing. Could you update your PR with the fixes from there? |
Summary:
Validation:
Related issue:
/hc_apicalled twice in api_helper #135Risk: