1
0
mirror of https://github.com/home-assistant/supervisor.git synced 2025-12-24 20:35:55 +00:00

Hash correct folder in source_mods tests (#3442)

Source mods test was corrected to start from `supervisor` folder within repo and not include tests. The patch here was still starting from the workspace directory since that's what it used to do
This commit is contained in:
Mike Degatano
2022-02-10 11:33:47 -05:00
committed by GitHub
parent d4fd8f3f0d
commit d2e0b0417c

View File

@@ -14,7 +14,7 @@ async def test_evaluation(coresys: CoreSys):
"""Test evaluation."""
with patch(
"supervisor.resolution.evaluations.source_mods._SUPERVISOR_SOURCE",
Path(os.getcwd()),
Path(f"{os.getcwd()}/supervisor"),
):
sourcemods = EvaluateSourceMods(coresys)
coresys.core.state = CoreState.RUNNING