From 9c1af82fffeb0b46f11ada1000e19b66fd5fd0f1 Mon Sep 17 00:00:00 2001 From: Es Date: Thu, 20 May 2021 19:49:37 +0200 Subject: [PATCH] add a config flow test --- tests/components/wallbox/test_config_flow.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/tests/components/wallbox/test_config_flow.py b/tests/components/wallbox/test_config_flow.py index d6769509a6b..8c8969534c7 100644 --- a/tests/components/wallbox/test_config_flow.py +++ b/tests/components/wallbox/test_config_flow.py @@ -110,6 +110,11 @@ async def test_configflow_class(): ), raises(Exception): 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(): """Test cannot Connect class."""