Skip to content

Commit

Permalink
feat: add add_input_provenance function for test setups
Browse files Browse the repository at this point in the history
  • Loading branch information
provos committed Dec 10, 2024
1 parent 813d11b commit bbb0f4b
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/planai/testing/test_helpers.py
Original file line number Diff line number Diff line change
Expand Up @@ -92,3 +92,8 @@ def assert_published_task_types(self, expected_types: List[Type[Task]]):
assert (
actual_types == expected_types
), f"Expected task types {expected_types}, got {actual_types}"


def add_input_provenance(input_task: Task, provenance: Task) -> Task:
input_task._input_provenance.append(provenance)
return input_task

0 comments on commit bbb0f4b

Please sign in to comment.