Skip to content

Commit

Permalink
attempt to fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
firstof9 committed Dec 13, 2021
1 parent 0bc5a9f commit 4b068f6
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
2 changes: 1 addition & 1 deletion custom_components/nws_alerts/config_flow.py
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ def _get_default(key):
)


async def _get_zone_list(self):
async def _get_zone_list(self) -> list | None:
"""Return list of zone by lat/lon"""

data = None
Expand Down
4 changes: 3 additions & 1 deletion tests/test_config_flow.py
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,9 @@ async def test_form(
with patch(
"custom_components.nws_alerts.async_setup_entry",
return_value=True,
) as mock_setup_entry:
) as mock_setup_entry, patch(
"custom_components.nws_alerts.config_flow._get_zone_list",
return_value=None):

result2 = await hass.config_entries.flow.async_configure(
result["flow_id"], input
Expand Down

0 comments on commit 4b068f6

Please sign in to comment.