|
1 | 1 | """Test ocpp setup process."""
|
2 |
| -from homeassistant.exceptions import ConfigEntryNotReady |
3 |
| -import pytest |
| 2 | +# from homeassistant.exceptions import ConfigEntryNotReady |
| 3 | +# import pytest |
4 | 4 | from pytest_homeassistant_custom_component.common import MockConfigEntry
|
5 | 5 |
|
6 | 6 | from custom_components.ocpp import (
|
@@ -43,14 +43,14 @@ async def test_setup_unload_and_reload_entry(hass, bypass_get_data):
|
43 | 43 | assert config_entry.entry_id not in hass.data[DOMAIN]
|
44 | 44 |
|
45 | 45 |
|
46 |
| -async def test_setup_entry_exception(hass, error_on_get_data): |
47 |
| - """Test ConfigEntryNotReady when API raises an exception during entry setup.""" |
48 |
| - config_entry = MockConfigEntry( |
49 |
| - domain=DOMAIN, data=MOCK_CONFIG_DATA, entry_id="test" |
50 |
| - ) |
51 |
| - |
52 |
| - # In this case we are testing the condition where async_setup_entry raises |
53 |
| - # ConfigEntryNotReady using the `error_on_get_data` fixture which simulates |
54 |
| - # an error. |
55 |
| - with pytest.raises(ConfigEntryNotReady): |
56 |
| - assert await async_setup_entry(hass, config_entry) |
| 46 | +# async def test_setup_entry_exception(hass, error_on_get_data): |
| 47 | +# """Test ConfigEntryNotReady when API raises an exception during entry setup.""" |
| 48 | +# config_entry = MockConfigEntry( |
| 49 | +# domain=DOMAIN, data=MOCK_CONFIG_DATA, entry_id="test" |
| 50 | +# ) |
| 51 | +# |
| 52 | +# # In this case we are testing the condition where async_setup_entry raises |
| 53 | +# # ConfigEntryNotReady using the `error_on_get_data` fixture which simulates |
| 54 | +# # an error. |
| 55 | +# with pytest.raises(ConfigEntryNotReady): |
| 56 | +# assert await async_setup_entry(hass, config_entry) |
0 commit comments