Enable Ruff rule PT007 (#113764)
Co-authored-by: Franck Nijhof <frenck@frenck.nl>
This commit is contained in:
parent
089a3ab6d7
commit
00ec7f11f0
204 changed files with 908 additions and 921 deletions
|
@ -274,10 +274,10 @@ async def test_direction_list(
|
|||
|
||||
@pytest.mark.parametrize(
|
||||
"client_exception",
|
||||
(
|
||||
[
|
||||
NextBusHTTPError("failed", HTTPError("url", 500, "error", MagicMock(), None)),
|
||||
NextBusFormatError("failed"),
|
||||
),
|
||||
],
|
||||
)
|
||||
async def test_prediction_exceptions(
|
||||
hass: HomeAssistant,
|
||||
|
@ -312,10 +312,10 @@ async def test_custom_name(
|
|||
|
||||
@pytest.mark.parametrize(
|
||||
"prediction_results",
|
||||
(
|
||||
[
|
||||
{},
|
||||
{"Error": "Failed"},
|
||||
),
|
||||
],
|
||||
)
|
||||
async def test_no_predictions(
|
||||
hass: HomeAssistant,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue