mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-01-23 13:24:29 +00:00
31d9bdf626
The image component is now part of the default_config dependency tree, which is why we now require pillow by default.
25 lines
1.0 KiB
Diff
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
|
|
|
|
|