Remove redundant ReCollect Waste test fixture (#79907)
This commit is contained in:
parent
b4d525f6a3
commit
5e32fdff26
1 changed files with 6 additions and 8 deletions
|
@ -16,9 +16,13 @@ from tests.common import MockConfigEntry
|
|||
|
||||
|
||||
@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=f"{config[CONF_PLACE_ID]}, {config[CONF_SERVICE_ID]}",
|
||||
data=config,
|
||||
)
|
||||
entry.add_to_hass(hass)
|
||||
return entry
|
||||
|
||||
|
@ -51,9 +55,3 @@ async def setup_recollect_waste_fixture(hass, 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 "12345, 12345"
|
||||
|
|
Loading…
Add table
Reference in a new issue