grantforge-api / backend /test_audit.py
GrantForge Bot
Deploy sha-9a5957fcdef15b7e2623f8b147cda6026475aee0 — source build (no GHCR)
3a3734f
Raw
History Blame Contribute Delete
528 Bytes
import sys
import os
sys.path.insert(0, os.path.abspath(os.path.dirname(__file__)))
from agents.auditor import audit_final_document
def test():
try:
content = "To jest testowy wniosek. Koszty to 1000 PLN. Innowacja jest super."
result = audit_final_document("test_proj_123", "FENG", content)
print("Success:")
print(result.model_dump())
except Exception as e:
print(f"Error: {e}")
import traceback
traceback.print_exc()
if __name__ == "__main__":
test()