brettapps789/api-wizard-mcp / test_wizard.py
brettapps789's picture
download
raw
885 Bytes
import os
import json
from server import set_secret, list_secrets, save_connection, list_connections
def test_wizard():
print("Testing API Wizard Tools...")
# Test set_secret
res = set_secret("TEST_KEY", "test_value_123")
print(f"set_secret: {res}")
# Test list_secrets
secrets = list_secrets()
print(f"list_secrets: {secrets}")
assert "TEST_KEY" in secrets
# Test save_connection
res = save_connection(
name="httpbin",
base_url="https://httpbin.org",
secret_key_name="TEST_KEY",
auth_type="Bearer"
)
print(f"save_connection: {res}")
# Test list_connections
connections = list_connections()
print(f"list_connections: {list(connections.keys())}")
assert "httpbin" in connections
print("\nAll local tests passed!")
if __name__ == "__main__":
test_wizard()

Xet Storage Details

Size:
885 Bytes
·
Xet hash:
c3cfc861948b2dee58497f77f8b46b8592c9665d487813e541469852b59ed9fe

Xet efficiently stores files, intelligently splitting them into unique chunks and accelerating uploads and downloads. More info.