mirror of
https://github.com/home-assistant/core.git
synced 2025-12-24 21:06:19 +00:00
Yoda assertion style removed is (#48142)
This commit is contained in:
@@ -23,7 +23,8 @@ async def test_get_platforms_from_mailbox(mock_http_client):
|
||||
req = await mock_http_client.get(url)
|
||||
assert req.status == 200
|
||||
result = await req.json()
|
||||
assert len(result) == 1 and "DemoMailbox" == result[0].get("name", None)
|
||||
assert len(result) == 1
|
||||
assert result[0].get("name") == "DemoMailbox"
|
||||
|
||||
|
||||
async def test_get_messages_from_mailbox(mock_http_client):
|
||||
|
||||
Reference in New Issue
Block a user