From 0639dce17be03194b2d23218401f87f1b97d495b Mon Sep 17 00:00:00 2001 From: Michael Panchenko Date: Fri, 6 Feb 2026 15:13:11 +0100 Subject: [PATCH] Fix assertion in test_cli_project_commands (fallback is now None, not cwd) --- test/serena/test_cli_project_commands.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/test/serena/test_cli_project_commands.py b/test/serena/test_cli_project_commands.py index 1052d403..be90a799 100644 --- a/test/serena/test_cli_project_commands.py +++ b/test/serena/test_cli_project_commands.py @@ -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)