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

Fix cannot connect #277

Merged
merged 2 commits into from
Oct 3, 2024
Merged

Conversation

andrew-codechimp
Copy link
Contributor

Proposed Changes

Throw proper mealie connection error when unable to connect to client to allow retry.

Related Issues

home-assistant/core#126906

@codecov-commenter
Copy link

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 99.08%. Comparing base (2f6b098) to head (21715a9).

Additional details and impacted files
@@           Coverage Diff           @@
##             main     #277   +/-   ##
=======================================
  Coverage   99.07%   99.08%           
=======================================
  Files           4        4           
  Lines         324      327    +3     
  Branches       36       37    +1     
=======================================
+ Hits          321      324    +3     
  Misses          2        2           
  Partials        1        1           

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

async def test_client_connection_error() -> None:
"""Test client connection error from mealie."""

async with MealieClient(api_host="https://bad-url") as mealie_client:
Copy link
Owner

Choose a reason for hiding this comment

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

Ah! I also made a fix on a local branch but couldn't figure out yet how its testable

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I struggled with this as well, but I'm learning 😄

@joostlek joostlek added the bugfix Inconsistencies or issues which will cause a problem for users or implementers. label Oct 3, 2024
@joostlek joostlek merged commit 8e57eb5 into joostlek:main Oct 3, 2024
11 of 12 checks passed
@andrew-codechimp andrew-codechimp deleted the fix-cannot-connect branch October 3, 2024 10:54
@github-actions github-actions bot locked and limited conversation to collaborators Oct 5, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bugfix Inconsistencies or issues which will cause a problem for users or implementers.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants