fix: rebranding, see [docs/name-change.md](docs/name-change.md) for details

This commit is contained in:
Fahad
2025-12-04 18:11:55 +04:00
parent bcfaccecd4
commit b2dc84992d
122 changed files with 1423 additions and 1056 deletions

View File

@@ -133,7 +133,7 @@ class TestChatTool:
assert "Evaluate this perspective" in formatted
def test_format_response_multiple_generated_code_blocks(self, tmp_path):
"""All generated-code blocks should be combined and saved to zen_generated.code."""
"""All generated-code blocks should be combined and saved to pal_generated.code."""
tool = ChatTool()
tool._model_context = SimpleNamespace(capabilities=SimpleNamespace(allow_code_generation=True))
@@ -148,7 +148,7 @@ class TestChatTool:
formatted = tool.format_response(response, request)
saved_path = tmp_path / "zen_generated.code"
saved_path = tmp_path / "pal_generated.code"
saved_content = saved_path.read_text(encoding="utf-8")
assert "print('world')" in saved_content
@@ -172,7 +172,7 @@ class TestChatTool:
formatted = tool.format_response(response, request)
saved_path = tmp_path / "zen_generated.code"
saved_path = tmp_path / "pal_generated.code"
saved_content = saved_path.read_text(encoding="utf-8")
assert "print('only-once')" in saved_content
@@ -191,7 +191,7 @@ class TestChatTool:
formatted = tool.format_response(response, request)
saved_path = tmp_path / "zen_generated.code"
saved_path = tmp_path / "pal_generated.code"
assert not saved_path.exists()
assert "print('oops')" in formatted
@@ -206,7 +206,7 @@ class TestChatTool:
formatted = tool.format_response(response, request)
saved_path = tmp_path / "zen_generated.code"
saved_path = tmp_path / "pal_generated.code"
assert not saved_path.exists()
assert "</GENERATED-CODE> just text" in formatted