Spaces:
Runtime error
Runtime error
| import pytest | |
| from reworkd_platform.web.api.agent import dependancies | |
| async def test_agent_validate(mocker, validator, step): | |
| run_id = "asim" | |
| crud = mocker.Mock() | |
| body = mocker.Mock() | |
| body.run_id = run_id | |
| crud.create_task = mocker.AsyncMock() | |
| await validator(body, crud) | |
| crud.create_task.assert_called_once_with(run_id, step) | |