Fix assertion in test_cli_project_commands (fallback is now None, not cwd)

This commit is contained in:
Michael Panchenko committed 2026-02-06 15:13:11 +01:00
1 parent 8288bf200d
commit 0639dce17b
1 file changed
+3 -3
+3 -3
View File
@@ -315,8 +315,8 @@ class TestFindProjectRoot:
finally:
os.chdir(original_cwd)
def test_falls_back_to_cwd_when_no_markers(self, temp_project_dir):
"""Test falls back to CWD when no markers exist within boundary."""
def test_falls_back_to_none_when_no_markers(self, temp_project_dir):
"""Test falls back to None when no markers exist within boundary."""
subdir = os.path.join(temp_project_dir, "src")
os.makedirs(subdir)
@@ -324,7 +324,7 @@ class TestFindProjectRoot:
try:
os.chdir(subdir)
result = find_project_root(root=temp_project_dir)
assert os.path.samefile(result, subdir)
assert result is None
finally:
os.chdir(original_cwd)