fix chdir

This commit is contained in:
Michael Ingvarsson
2026-07-16 12:27:04 +02:00
parent e54b5f1848
commit b47a3b3146
2 changed files with 35 additions and 49 deletions
+1 -3
View File
@@ -137,9 +137,7 @@ async def test_dispatch_planning_and_coding_phases(mock_planning_class: MagicMoc
priority=0
)
# We mock os.path.isdir to return True so os.chdir won't fail or crash in test
with patch("os.path.isdir", return_value=True), patch("os.chdir"):
results = await dispatcher.dispatch("meeks/repo1", [work_item])
results = await dispatcher.dispatch("meeks/repo1", [work_item])
assert len(results) == 1
assert results[0] == "PR #1 Created"