dograh/api/tests/test_dto.py

12 lines
289 B
Python
Raw Permalink Normal View History

2025-09-09 14:37:32 +05:30
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:
2025-09-09 14:37:32 +05:30
dto = ReactFlowDTO.model_validate_json(f.read())
assert dto is not None