Add option to set a stun server for RTSPtoWebRTC (#72574)

This commit is contained in:
Allen Porter
2022-10-03 18:10:28 -07:00
committed by GitHub
parent 3c07d40fe7
commit 90637a721c
7 changed files with 219 additions and 6 deletions

View File

@@ -65,9 +65,20 @@ async def config_entry_data() -> dict[str, Any]:
@pytest.fixture
async def config_entry(config_entry_data: dict[str, Any]) -> MockConfigEntry:
def config_entry_options() -> dict[str, Any] | None:
"""Fixture to set initial config entry options."""
return None
@pytest.fixture
async def config_entry(
config_entry_data: dict[str, Any],
config_entry_options: dict[str, Any] | None,
) -> MockConfigEntry:
"""Fixture for MockConfigEntry."""
return MockConfigEntry(domain=DOMAIN, data=config_entry_data)
return MockConfigEntry(
domain=DOMAIN, data=config_entry_data, options=config_entry_options
)
@pytest.fixture