Fix uncaught exception in local_file (#34312)
* remove ignore from localfile * added mock_registry * since there are no more exceptions, infra to ignore them is redundant
This commit is contained in:
3 files changed
+2
-23
No files matched your search
@@ -41,6 +41,8 @@ async def test_loading_file(hass, hass_client):
|
||||
|
||||
async def test_file_not_readable(hass, caplog):
|
||||
"""Test a warning is shown setup when file is not readable."""
|
||||
mock_registry(hass)
|
||||
|
||||
with mock.patch("os.path.isfile", mock.Mock(return_value=True)), mock.patch(
|
||||
"os.access", mock.Mock(return_value=False)
|
||||
):
|
||||
|
||||
Reference in new issue
Block a user