about summary refs log tree commit diff
path: root/pkgs/servers/home-assistant/fix-media-path-test.patch
blob: 558fabfe34404cd61a9a31a6d3dba818dc782bdc (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
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