1
0
mirror of https://github.com/esphome/esphome.git synced 2025-07-04 22:23:14 +01:00

Store source package in Component for debugging ()

This commit is contained in:
Otto Winter
2021-08-23 20:49:19 +02:00
committed by GitHub
parent 1c1ad32610
commit 1b89174558
7 changed files with 91 additions and 14 deletions

@ -38,7 +38,7 @@ async def test_register_component(monkeypatch):
actual = await ch.register_component(var, {})
assert actual is var
add_mock.assert_called_once()
assert add_mock.call_count == 2
app_mock.register_component.assert_called_with(var)
assert core_mock.component_ids == []
@ -77,6 +77,6 @@ async def test_register_component__with_setup_priority(monkeypatch):
assert actual is var
add_mock.assert_called()
assert add_mock.call_count == 3
assert add_mock.call_count == 4
app_mock.register_component.assert_called_with(var)
assert core_mock.component_ids == []