Skip to content

Commit

Permalink
Restrict to 0 reported issues
Browse files Browse the repository at this point in the history
  • Loading branch information
ludeeus committed Apr 11, 2024
1 parent 05f977d commit 19e3f1a
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions tests/conftest.py
Original file line number Diff line number Diff line change
Expand Up @@ -360,10 +360,7 @@ async def setup_integration(hass: HomeAssistant, check_report_issue: None) -> No
async def check_report_issue() -> None:
"""Finish things up."""
yield
# Issues may be created because hacs accesses hass.components, hass.helpers and
# calls async_show_progress without passing a progress task
allowed = [0, 1, 2, 3] if AwesomeVersion(HA_VERSION) > "2023.6.0" else [0]
if (times := len(_async_suggest_report_issue_mock_call_tracker)) not in allowed:
if (times := len(_async_suggest_report_issue_mock_call_tracker)) != 0:
raise AssertionError(
f"homeassistant.loader.async_suggest_report_issue has been called {times} times"
)
Expand Down

0 comments on commit 19e3f1a

Please sign in to comment.