mirror of
https://github.com/home-assistant/core.git
synced 2025-11-09 02:49:40 +00:00
Don't allow in-memory SQLite database (#69616)
This commit is contained in:
@@ -1394,3 +1394,11 @@ async def test_database_lock_without_instance(hass):
|
||||
assert await instance.lock_database()
|
||||
finally:
|
||||
assert instance.unlock_database()
|
||||
|
||||
|
||||
async def test_in_memory_database(hass, caplog):
|
||||
"""Test connecting to an in-memory recorder is not allowed."""
|
||||
assert not await async_setup_component(
|
||||
hass, recorder.DOMAIN, {recorder.DOMAIN: {recorder.CONF_DB_URL: "sqlite://"}}
|
||||
)
|
||||
assert "In-memory SQLite database is not supported" in caplog.text
|
||||
|
||||
Reference in New Issue
Block a user