mirror of
https://github.com/home-assistant/core.git
synced 2025-07-23 13:17:32 +00:00
Fix flaky test
This commit is contained in:
parent
f71527d5db
commit
67eeb8f258
@ -144,14 +144,18 @@ async def test_get_integration_with_requirements(hass):
|
|||||||
assert integration.domain == "test_component"
|
assert integration.domain == "test_component"
|
||||||
|
|
||||||
assert len(mock_is_installed.mock_calls) == 3
|
assert len(mock_is_installed.mock_calls) == 3
|
||||||
assert mock_is_installed.mock_calls[0][1][0] == "test-comp==1.0.0"
|
assert sorted(mock_call[1][0] for mock_call in mock_is_installed.mock_calls) == [
|
||||||
assert mock_is_installed.mock_calls[1][1][0] == "test-comp-dep==1.0.0"
|
"test-comp-after-dep==1.0.0",
|
||||||
assert mock_is_installed.mock_calls[2][1][0] == "test-comp-after-dep==1.0.0"
|
"test-comp-dep==1.0.0",
|
||||||
|
"test-comp==1.0.0",
|
||||||
|
]
|
||||||
|
|
||||||
assert len(mock_inst.mock_calls) == 3
|
assert len(mock_inst.mock_calls) == 3
|
||||||
assert mock_inst.mock_calls[0][1][0] == "test-comp==1.0.0"
|
assert sorted(mock_call[1][0] for mock_call in mock_inst.mock_calls) == [
|
||||||
assert mock_inst.mock_calls[1][1][0] == "test-comp-dep==1.0.0"
|
"test-comp-after-dep==1.0.0",
|
||||||
assert mock_inst.mock_calls[2][1][0] == "test-comp-after-dep==1.0.0"
|
"test-comp-dep==1.0.0",
|
||||||
|
"test-comp==1.0.0",
|
||||||
|
]
|
||||||
|
|
||||||
|
|
||||||
async def test_install_with_wheels_index(hass):
|
async def test_install_with_wheels_index(hass):
|
||||||
|
Loading…
x
Reference in New Issue
Block a user