Description
Transform flow is a sub flow without sources / targets, so it's relatively easier to run in tests (it's stateless and don't require database connection). While executing a transform flow still covers a broad range of cocoindex core logic, so it's great if we can add test to execute a transform flow.
In the test, we may define 2 transform flows (a very simple one, a more complex one with a "for each" on child rows), and use custom functions in Python for these transform flows. Evaluate these flows with given inputs, and asserts on output.
This is one step towards a full fledged end to end test involving database (which needs more work to be done and will be tracked separately)
❤️ Contributors, please refer to 📙Contributing Guide.
Unless the PR can be sent immediately (e.g. just a few lines of code), we recommend you to leave a comment on the issue like I'm working on it
or Can I work on this issue?
to avoid duplicating work. Our Discord server is always open and friendly.