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
|
@ -13,7 +13,7 @@ def mock_hass():
|
|||
return Mock(data={})
|
||||
|
||||
|
||||
@pytest.mark.parametrize("result", (object(), {}, []))
|
||||
@pytest.mark.parametrize("result", [object(), {}, []])
|
||||
async def test_singleton_async(mock_hass, result) -> None:
|
||||
"""Test singleton with async function."""
|
||||
|
||||
|
@ -29,7 +29,7 @@ async def test_singleton_async(mock_hass, result) -> None:
|
|||
assert mock_hass.data["test_key"] is result1
|
||||
|
||||
|
||||
@pytest.mark.parametrize("result", (object(), {}, []))
|
||||
@pytest.mark.parametrize("result", [object(), {}, []])
|
||||
def test_singleton(mock_hass, result) -> None:
|
||||
"""Test singleton with function."""
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue