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