2025-11-07 18:50:28 +01:00
|
|
|
from rp.commands.help_docs import (
|
2025-11-05 15:34:23 +01:00
|
|
|
get_agent_help,
|
|
|
|
|
get_background_help,
|
2025-11-08 02:11:31 +01:00
|
|
|
get_cache_help,
|
2025-11-05 15:34:23 +01:00
|
|
|
get_full_help,
|
2025-11-08 02:11:31 +01:00
|
|
|
get_knowledge_help,
|
|
|
|
|
get_workflow_help,
|
2025-11-05 15:34:23 +01:00
|
|
|
)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
class TestHelpDocs:
|
|
|
|
|
def test_get_workflow_help(self):
|
|
|
|
|
result = get_workflow_help()
|
|
|
|
|
assert isinstance(result, str)
|
|
|
|
|
assert "WORKFLOWS" in result
|
|
|
|
|
assert "AUTOMATED TASK EXECUTION" in result
|
|
|
|
|
|
|
|
|
|
def test_get_agent_help(self):
|
|
|
|
|
result = get_agent_help()
|
|
|
|
|
assert isinstance(result, str)
|
|
|
|
|
assert "AGENTS" in result
|
|
|
|
|
assert "SPECIALIZED AI ASSISTANTS" in result
|
|
|
|
|
|
|
|
|
|
def test_get_knowledge_help(self):
|
|
|
|
|
result = get_knowledge_help()
|
|
|
|
|
assert isinstance(result, str)
|
|
|
|
|
assert "KNOWLEDGE BASE" in result
|
|
|
|
|
assert "PERSISTENT INFORMATION STORAGE" in result
|
|
|
|
|
|
|
|
|
|
def test_get_cache_help(self):
|
|
|
|
|
result = get_cache_help()
|
|
|
|
|
assert isinstance(result, str)
|
|
|
|
|
assert "CACHING SYSTEM" in result
|
|
|
|
|
assert "PERFORMANCE OPTIMIZATION" in result
|
|
|
|
|
|
|
|
|
|
def test_get_background_help(self):
|
|
|
|
|
result = get_background_help()
|
|
|
|
|
assert isinstance(result, str)
|
|
|
|
|
assert "BACKGROUND SESSIONS" in result
|
|
|
|
|
assert "CONCURRENT TASK EXECUTION" in result
|
|
|
|
|
|
|
|
|
|
def test_get_full_help(self):
|
|
|
|
|
result = get_full_help()
|
|
|
|
|
assert isinstance(result, str)
|
|
|
|
|
assert "R - PROFESSIONAL AI ASSISTANT" in result
|
|
|
|
|
assert "BASIC COMMANDS" in result
|