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
|
@ -27,10 +27,10 @@ def sync_access_token_proxy(
|
|||
|
||||
@pytest.mark.parametrize(
|
||||
"with_hassio",
|
||||
(
|
||||
[
|
||||
pytest.param(True, id="with_hassio"),
|
||||
pytest.param(False, id="without_hassio"),
|
||||
),
|
||||
],
|
||||
)
|
||||
async def test_info(
|
||||
hass: HomeAssistant,
|
||||
|
@ -54,10 +54,10 @@ async def test_info(
|
|||
|
||||
@pytest.mark.parametrize(
|
||||
"with_hassio",
|
||||
(
|
||||
[
|
||||
pytest.param(True, id="with_hassio"),
|
||||
pytest.param(False, id="without_hassio"),
|
||||
),
|
||||
],
|
||||
)
|
||||
async def test_remove(
|
||||
hass: HomeAssistant,
|
||||
|
@ -80,10 +80,10 @@ async def test_remove(
|
|||
|
||||
@pytest.mark.parametrize(
|
||||
"with_hassio",
|
||||
(
|
||||
[
|
||||
pytest.param(True, id="with_hassio"),
|
||||
pytest.param(False, id="without_hassio"),
|
||||
),
|
||||
],
|
||||
)
|
||||
async def test_generate(
|
||||
hass: HomeAssistant,
|
||||
|
@ -111,10 +111,10 @@ async def test_generate(
|
|||
)
|
||||
@pytest.mark.parametrize(
|
||||
("with_hassio"),
|
||||
(
|
||||
[
|
||||
pytest.param(True, id="with_hassio"),
|
||||
pytest.param(False, id="without_hassio"),
|
||||
),
|
||||
],
|
||||
)
|
||||
async def test_backup_end(
|
||||
hass: HomeAssistant,
|
||||
|
@ -145,10 +145,10 @@ async def test_backup_end(
|
|||
)
|
||||
@pytest.mark.parametrize(
|
||||
("with_hassio"),
|
||||
(
|
||||
[
|
||||
pytest.param(True, id="with_hassio"),
|
||||
pytest.param(False, id="without_hassio"),
|
||||
),
|
||||
],
|
||||
)
|
||||
async def test_backup_start(
|
||||
hass: HomeAssistant,
|
||||
|
@ -174,11 +174,11 @@ async def test_backup_start(
|
|||
|
||||
@pytest.mark.parametrize(
|
||||
"exception",
|
||||
(
|
||||
[
|
||||
TimeoutError(),
|
||||
HomeAssistantError("Boom"),
|
||||
Exception("Boom"),
|
||||
),
|
||||
],
|
||||
)
|
||||
async def test_backup_end_excepion(
|
||||
hass: HomeAssistant,
|
||||
|
@ -203,11 +203,11 @@ async def test_backup_end_excepion(
|
|||
|
||||
@pytest.mark.parametrize(
|
||||
"exception",
|
||||
(
|
||||
[
|
||||
TimeoutError(),
|
||||
HomeAssistantError("Boom"),
|
||||
Exception("Boom"),
|
||||
),
|
||||
],
|
||||
)
|
||||
async def test_backup_start_excepion(
|
||||
hass: HomeAssistant,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue