dograh/api/tests/test_dto.py
Abhishek Kumar 1ef07c80b6 fixes #100
Fixes multiple LLM generation when there are multiple tool calls from LLM
2026-01-03 12:45:44 +05:30

11 lines
289 B
Python

import pytest
from api.services.workflow.dto import ReactFlowDTO
@pytest.mark.asyncio
async def test_dto():
# assert no exceptions are raised
with open("tests/definitions/rf-1.json", "r") as f:
dto = ReactFlowDTO.model_validate_json(f.read())
assert dto is not None