Skip to content

Commit

Permalink
manually add mock entry to hass
Browse files Browse the repository at this point in the history
  • Loading branch information
lbbrhzn committed Nov 4, 2023
1 parent 358ddf9 commit 380152b
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion tests/test_init.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,8 @@ async def test_setup_unload_and_reload_entry(hass, bypass_get_data):
config_entry = MockConfigEntry(
domain=DOMAIN, data=MOCK_CONFIG_DATA_1, entry_id="test_cms1", title="test_cms1"
)
config_entry.add_to_hass(hass)
#config_entry.add_to_hass(hass);
hass.config_entries._entries[config_entry.entry_id] = config_entry

# Set up the entry and assert that the values set during setup are where we expect
# them to be. Because we have patched the ocppDataUpdateCoordinator.async_get_data
Expand Down

0 comments on commit 380152b

Please sign in to comment.