Enable Ruff PT006 (#88165)
* Enable Ruff PT006 * Adjust existing cases * Fix tests * Remove unneeded parentheses
This commit is contained in:
parent
6f38bc274a
commit
ed79265843
411 changed files with 1532 additions and 1123 deletions
|
@ -2887,7 +2887,7 @@ async def test_firmware_upload_view_invalid_payload(
|
|||
|
||||
|
||||
@pytest.mark.parametrize(
|
||||
"method, url",
|
||||
("method", "url"),
|
||||
[("post", "/api/zwave_js/firmware/upload/{}")],
|
||||
)
|
||||
async def test_node_view_non_admin_user(
|
||||
|
@ -2903,7 +2903,7 @@ async def test_node_view_non_admin_user(
|
|||
|
||||
|
||||
@pytest.mark.parametrize(
|
||||
"method, url",
|
||||
("method", "url"),
|
||||
[
|
||||
("post", "/api/zwave_js/firmware/upload/{}"),
|
||||
],
|
||||
|
@ -2920,7 +2920,7 @@ async def test_view_unloaded_config_entry(
|
|||
|
||||
|
||||
@pytest.mark.parametrize(
|
||||
"method, url",
|
||||
("method", "url"),
|
||||
[("post", "/api/zwave_js/firmware/upload/INVALID")],
|
||||
)
|
||||
async def test_view_invalid_device_id(integration, hass_client, method, url):
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue