mirror of
https://github.com/home-assistant/core.git
synced 2025-12-23 20:39:01 +00:00
Enable Ruff rule PT007 (#113764)
Co-authored-by: Franck Nijhof <frenck@frenck.nl>
This commit is contained in:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user