fix: rebranding, see [docs/name-change.md](docs/name-change.md) for details
This commit is contained in:
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user