#!/usr/bin/env python3
"""
快速登录测试
"""
import requests
import json

print("测试登录API...")

try:
    response = requests.post(
        "http://localhost:8000/api/v1/auth/login",
        json={
            "username": "admin",
            "password": "Admin123456"
        },
        timeout=5
    )
    
    print(f"状态码: {response.status_code}")
    print(f"响应: {json.dumps(response.json(), indent=2, ensure_ascii=False)}")
    
except Exception as e:
    print(f"错误: {e}")
    import traceback
    traceback.print_exc()
