2f6cf824f2
feat(prompts): update system prompt to eliminate numeric limits for sub-agents and delegation rounds test(tests): adjust tests to reflect changes in configuration and onboarding logic
31 lines
995 B
Python
31 lines
995 B
Python
"""Tests for EvoScientist/prompts.py."""
|
|
|
|
from EvoScientist.prompts import get_system_prompt, EXPERIMENT_WORKFLOW, DELEGATION_STRATEGY
|
|
|
|
|
|
class TestGetSystemPrompt:
|
|
def test_returns_non_empty(self):
|
|
result = get_system_prompt()
|
|
assert isinstance(result, str)
|
|
assert len(result) > 100
|
|
|
|
def test_contains_workflow(self):
|
|
result = get_system_prompt()
|
|
assert "Experiment Workflow" in result
|
|
|
|
def test_contains_delegation(self):
|
|
result = get_system_prompt()
|
|
assert "Sub-Agent Delegation" in result
|
|
|
|
def test_no_numeric_limits(self):
|
|
result = get_system_prompt()
|
|
assert "{max_concurrent}" not in result
|
|
assert "{max_iterations}" not in result
|
|
|
|
def test_workflow_constant_not_empty(self):
|
|
assert len(EXPERIMENT_WORKFLOW) > 0
|
|
|
|
def test_delegation_no_placeholders(self):
|
|
assert "{max_concurrent}" not in DELEGATION_STRATEGY
|
|
assert "{max_iterations}" not in DELEGATION_STRATEGY
|