Merge pull request #15 from living-ip/codex/leo-wallet-test-existing-token-20260622

Use existing Leo wallet-test Telegram bot
This commit is contained in:
twentyOne2x 2026-06-23 11:18:19 +02:00 committed by GitHub
commit d4f2530284
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
3 changed files with 10 additions and 10 deletions

View file

@ -2,13 +2,13 @@
# This config runs a separate Telegram bot process against Leo's hosted HTTP chat route.
name: Leo Wallet Test
handle: "@lipleowallet06222026bot"
handle: "@lipleowallet0622183538bot"
x_handle: "@teLEOhuman"
mention_aliases:
- "@leo"
- "@lipleowallet06222026bot"
- "@lipleowallet0622183538bot"
- "@LeoWalletTest"
bot_token_file: leo-wallet-test-telegram-bot-token
bot_token_file: leo-test-telegram-bot-token
pentagon_agent_id: livingip-leo-wallet-test
domain: collective-intelligence
domain_expertise: >

View file

@ -47,7 +47,7 @@ def test_missing_token_writes_sanitized_blocker(tmp_path):
def test_invalid_token_shape_fails_without_printing_token(tmp_path):
secrets_dir = tmp_path / "secrets"
secrets_dir.mkdir()
token_path = secrets_dir / "leo-wallet-test-telegram-bot-token"
token_path = secrets_dir / "leo-test-telegram-bot-token"
token = "not-a-valid-token"
token_path.write_text(token)
proof_path = tmp_path / "proof.json"
@ -88,7 +88,7 @@ def test_getme_result_is_sanitized_and_matches_expected_username():
"id": 123456789,
"is_bot": True,
"first_name": "Living IP Leo Wallet Test",
"username": "lipleowallet06222026bot",
"username": "lipleowallet0622183538bot",
"can_join_groups": True,
"can_read_all_group_messages": False,
"supports_inline_queries": False,
@ -104,7 +104,7 @@ def test_getme_result_is_sanitized_and_matches_expected_username():
serialized = json.dumps(result)
assert result["ok"] is True
assert result["username"] == "lipleowallet06222026bot"
assert result["username"] == "lipleowallet0622183538bot"
assert result["botIdPresent"] is True
assert result["secretValuesIncluded"] is False
assert token not in serialized

View file

@ -32,8 +32,8 @@ def test_leo_config_opts_into_http_chat_proxy_without_changing_default_agents():
assert leo_wallet_test.http_research_proxy_url == "https://leo.livingip.xyz/api/agents/leo/research"
assert "/smart_research" in leo_wallet_test.smart_research_command_prefixes
assert leo_wallet_test.respond_to_private_chats is True
assert leo_wallet_test.bot_token_file == "leo-wallet-test-telegram-bot-token"
assert "@lipleowallet06222026bot" in leo_wallet_test.mention_aliases
assert leo_wallet_test.bot_token_file == "leo-test-telegram-bot-token"
assert "@lipleowallet0622183538bot" in leo_wallet_test.mention_aliases
assert rio.http_chat_proxy_url is None
assert rio.respond_to_private_chats is False
@ -108,8 +108,8 @@ def test_smart_research_payload_is_no_spend_by_default():
("message", "expected"),
[
("/smart_research find x402 evidence", "find x402 evidence"),
("@lipleowallet06222026bot /smart_research find x402 evidence", "find x402 evidence"),
("/paid_research@lipleowallet06222026bot find x402 evidence", "find x402 evidence"),
("@lipleowallet0622183538bot /smart_research find x402 evidence", "find x402 evidence"),
("/paid_research@lipleowallet0622183538bot find x402 evidence", "find x402 evidence"),
("can Leo use x402 paid research now?", None),
("/smart_research", None),
],