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
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

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