brettapps789/github-mcp / test_github.py
brettapps789's picture
download
raw
614 Bytes
import json
import base64
from server import get_headers
def test_headers():
print("Testing Headers...")
headers = get_headers()
assert "application/vnd.github.v3+json" in headers["Accept"]
print("PASSED")
def test_base64_logic():
print("Testing Base64 Logic...")
content = "Hello GitHub"
encoded = base64.b64encode(content.encode("utf-8")).decode("utf-8")
decoded = base64.b64decode(encoded).decode("utf-8")
assert content == decoded
print("PASSED")
if __name__ == "__main__":
test_headers()
test_base64_logic()
print("\nAll GitHub MCP logic tests passed!")

Xet Storage Details

Size:
614 Bytes
·
Xet hash:
2acf2286028f58ba76eb4f33f7f7da1dd11c6ce1889105d7bce79f4850882ce2

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