Skip to content

Add test on Python side to execute transform flow end to end #618

Open
@badmonster0

Description

@badmonster0

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    help wantedExtra attention is needed

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions