Remove redundant Notion test fixture (#79910)
This commit is contained in:
parent
d90359b424
commit
63379bcaff
1 changed files with 2 additions and 8 deletions
|
@ -22,9 +22,9 @@ def client_fixture(data_bridge, data_sensor, data_task):
|
||||||
|
|
||||||
|
|
||||||
@pytest.fixture(name="config_entry")
|
@pytest.fixture(name="config_entry")
|
||||||
def config_entry_fixture(hass, config, unique_id):
|
def config_entry_fixture(hass, config):
|
||||||
"""Define a config entry fixture."""
|
"""Define a config entry fixture."""
|
||||||
entry = MockConfigEntry(domain=DOMAIN, unique_id=unique_id, data=config)
|
entry = MockConfigEntry(domain=DOMAIN, unique_id=config[CONF_USERNAME], data=config)
|
||||||
entry.add_to_hass(hass)
|
entry.add_to_hass(hass)
|
||||||
return entry
|
return entry
|
||||||
|
|
||||||
|
@ -65,9 +65,3 @@ async def setup_notion_fixture(hass, client, config):
|
||||||
assert await async_setup_component(hass, DOMAIN, config)
|
assert await async_setup_component(hass, DOMAIN, config)
|
||||||
await hass.async_block_till_done()
|
await hass.async_block_till_done()
|
||||||
yield
|
yield
|
||||||
|
|
||||||
|
|
||||||
@pytest.fixture(name="unique_id")
|
|
||||||
def unique_id_fixture(hass):
|
|
||||||
"""Define a config entry unique ID fixture."""
|
|
||||||
return "user@host.com"
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue