nixpkgs/pkgs/servers/home-assistant/fix-media-path-test.patch
Martin Weinelt 31d9bdf626
homeassistant: 0.114.4 -> 0.115.6
The image component is now part of the default_config dependency tree,
which is why we now require pillow by default.
2020-10-02 19:10:42 +02:00

25 lines
1.0 KiB
Diff

diff --git a/tests/test_config.py b/tests/test_config.py
index fb22ee1118..1b87e32fe7 100644
--- a/tests/test_config.py
+++ b/tests/test_config.py
@@ -440,7 +440,7 @@ async def test_loading_configuration(hass):
"allowlist_external_dirs": "/etc",
"external_url": "https://www.example.com",
"internal_url": "http://example.local",
- "media_dirs": {"mymedia": "/usr"},
+ "media_dirs": {"mymedia": "/build/media"},
},
)
@@ -454,8 +454,8 @@ async def test_loading_configuration(hass):
assert hass.config.internal_url == "http://example.local"
assert len(hass.config.allowlist_external_dirs) == 3
assert "/etc" in hass.config.allowlist_external_dirs
- assert "/usr" in hass.config.allowlist_external_dirs
- assert hass.config.media_dirs == {"mymedia": "/usr"}
+ assert "/build/media" in hass.config.allowlist_external_dirs
+ assert hass.config.media_dirs == {"mymedia": "/build/media"}
assert hass.config.config_source == config_util.SOURCE_YAML