mirror of
https://github.com/dograh-hq/dograh.git
synced 2026-06-07 07:55:16 +02:00
12 lines
306 B
Python
12 lines
306 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("services/workflow/test/definitions/rf-1.json", "r") as f:
|
||
|
|
dto = ReactFlowDTO.model_validate_json(f.read())
|
||
|
|
assert dto is not None
|