Skip to content

Commit

Permalink
Remove redundant Notion test fixture (home-assistant#79910)
Browse files Browse the repository at this point in the history
  • Loading branch information
bachya authored Oct 8, 2022
1 parent d90359b commit 63379bc
Showing 1 changed file with 2 additions and 8 deletions.
10 changes: 2 additions & 8 deletions tests/components/notion/conftest.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,9 +22,9 @@ def client_fixture(data_bridge, data_sensor, data_task):


@pytest.fixture(name="config_entry")
def config_entry_fixture(hass, config, unique_id):
def config_entry_fixture(hass, config):
"""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)
return entry

Expand Down Expand Up @@ -65,9 +65,3 @@ async def setup_notion_fixture(hass, client, config):
assert await async_setup_component(hass, DOMAIN, config)
await hass.async_block_till_done()
yield


@pytest.fixture(name="unique_id")
def unique_id_fixture(hass):
"""Define a config entry unique ID fixture."""
return "[email protected]"

0 comments on commit 63379bc

Please sign in to comment.