Add config flow to Workday (#72558)
* Initial commit Workday Config Flow * Add tests * Remove day_to_string * new entity name, new depr. version, clean * Use repairs for depr. warning * Fix issue_registry moved * tweaks * hassfest * Fix CI * FlowResultType * breaking version * remove translation * Fixes * naming * duplicates * abort entries match * add_suggested_values_to_schema * various * validate country * abort_entries_match in option flow * Remove country test * remove country not exist string * docstring exceptions * easier * break version * unneeded check * slim tests * Fix import test * Fix province in abort_match * review comments * Fix import province * Add review fixes * fix reviews * Review fixes
This commit is contained in:
parent
a511e7d6bc
commit
f74103c57e
13 changed files with 1093 additions and 20 deletions
14
tests/components/workday/conftest.py
Normal file
14
tests/components/workday/conftest.py
Normal file
|
@ -0,0 +1,14 @@
|
|||
"""Fixtures for Workday integration tests."""
|
||||
from collections.abc import Generator
|
||||
from unittest.mock import AsyncMock, patch
|
||||
|
||||
import pytest
|
||||
|
||||
|
||||
@pytest.fixture
|
||||
def mock_setup_entry() -> Generator[AsyncMock, None, None]:
|
||||
"""Mock setting up a config entry."""
|
||||
with patch(
|
||||
"homeassistant.components.workday.async_setup_entry", return_value=True
|
||||
) as mock_setup:
|
||||
yield mock_setup
|
Loading…
Add table
Add a link
Reference in a new issue