
import requests

def test_login():
    url = "http://localhost:8000/fs-ai-asistant/api/workflow/lawrisk/auth/login"
    payload = {
        "username": "admin",
        "password": "adminpassword123"
    }
    try:
        resp = requests.post(url, json=payload)
        print(f"Status: {resp.status_code}")
        print(f"JSON: {resp.json()}")
    except Exception as e:
        print(f"Error: {e}")

if __name__ == "__main__":
    test_login()
