mirror of
https://github.com/home-assistant/core.git
synced 2025-08-02 04:05:06 +02:00
add a config flow test
This commit is contained in:
@@ -110,6 +110,11 @@ async def test_configflow_class():
|
|||||||
), raises(Exception):
|
), raises(Exception):
|
||||||
assert await configflow.async_step_user(True)
|
assert await configflow.async_step_user(True)
|
||||||
|
|
||||||
|
with patch(
|
||||||
|
"homeassistant.components.wallbox.config_flow.validate_input",
|
||||||
|
), raises(Exception):
|
||||||
|
assert await configflow.async_step_user(True)
|
||||||
|
|
||||||
|
|
||||||
def test_cannot_connect_class():
|
def test_cannot_connect_class():
|
||||||
"""Test cannot Connect class."""
|
"""Test cannot Connect class."""
|
||||||
|
Reference in New Issue
Block a user