mirror of
https://github.com/basicmachines-co/basic-memory
synced 2026-06-21 13:47:35 +00:00
a148e72f56
Signed-off-by: phernandez <paul@basicmachines.co> Co-authored-by: Claude Fable 5 <noreply@anthropic.com>
26 lines
812 B
Python
26 lines
812 B
Python
"""Tests for cloud discovery MCP tools."""
|
|
|
|
from basic_memory.cli.promo import OSS_DISCOUNT_CODE
|
|
from basic_memory.mcp.tools import cloud_info, release_notes
|
|
|
|
|
|
def test_cloud_info_tool_returns_expected_copy():
|
|
result = cloud_info()
|
|
|
|
assert "# Basic Memory Cloud (optional)" in result
|
|
assert OSS_DISCOUNT_CODE in result
|
|
assert "bm cloud login" in result
|
|
# Regression (#958): the template placeholder must never reach users.
|
|
assert "{{" not in result
|
|
|
|
|
|
def test_release_notes_tool_returns_expected_copy():
|
|
result = release_notes()
|
|
|
|
assert "# Release Notes" in result
|
|
assert "2026-02-06" in result
|
|
assert OSS_DISCOUNT_CODE in result
|
|
assert "bm cloud login" in result
|
|
# Regression (#958): the template placeholder must never reach users.
|
|
assert "{{" not in result
|