(inputs: list[str], expected: set[str])
| 743 | ) |
| 744 | |
| 745 | def wait_result(inputs: list[str], expected: set[str]) -> None: |
| 746 | nonlocal count |
| 747 | count += 1 |
| 748 | G.clear() |
| 749 | path = input_path / str(count) |
| 750 | write_lines(path, inputs) |
| 751 | t_1 = pw.io.csv.read(input_path, schema=InputSchema, mode="streaming") |
| 752 | res = t_1._buffer(pw.this.t + 10, pw.this.t) |
| 753 | pw.io.csv.write(res, output_path) |
| 754 | wait_result_with_checker( |
| 755 | get_checker(output_path, expected), |
| 756 | timeout_sec=10, |
| 757 | target=run, |
| 758 | kwargs={"persistence_config": persistence_config}, |
| 759 | ) |
| 760 | |
| 761 | wait_result(["t", "1", "3", "11"], {"1,1"}) |
| 762 | wait_result(["t", "15", "16"], {"3,1"}) |
no test coverage detected