test(hosted-file): add debug and E2E tests for hash-based download

This commit is contained in:
Scott Idem
2026-02-03 13:44:28 -05:00
parent 07609bae9a
commit 6f7fde7b87
2 changed files with 77 additions and 0 deletions

View File

@@ -0,0 +1,24 @@
import asyncio
from typing import Optional
from app.routers.dependencies_v3 import get_account_context_optional
async def debug_auth():
print("--- Debugging get_account_context_optional ---")
API_KEY = "IDF68Em5X4HTZlswRNgepQ"
# Simulate Query Param
ctx = get_account_context_optional(
x_aether_api_key_query=API_KEY
)
print(f"Auth Method: {ctx.auth_method}")
print(f"Account ID: {ctx.account_id}")
if ctx.auth_method == 'guest':
print("❌ Result: Guest (Failure)")
else:
print(f"✅ Result: {ctx.auth_method} (Success)")
if __name__ == "__main__":
asyncio.run(debug_auth())