Unignore Ruff PLR in tests (#114470)

* Unignore Ruff PLR in tests

* Address review comments

* review comments

* fix import

* Update test_api.py

* Update test_api.py

* Update test_api.py
This commit is contained in:
Sid 2024-04-01 11:11:59 +02:00 committed by GitHub
parent dc59073f25
commit d5f883fbf0
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
169 changed files with 211 additions and 266 deletions

View file

@ -47,9 +47,9 @@ async def test_setup(hass: HomeAssistant) -> None:
)
assert len(mock_ex.mock_calls) == 1
hass, script, source, data = mock_ex.mock_calls[0][1]
test_hass, script, source, data = mock_ex.mock_calls[0][1]
assert hass is hass
assert test_hass is hass
assert script == "hello.py"
assert source == "fake source"
assert data == {"some": "data"}