MCPcopy Index your code
hub / github.com/pathwaycom/pathway / wait_result

Function wait_result

python/pathway/tests/test_persistence.py:745–759  ·  view source on GitHub ↗
(inputs: list[str], expected: set[str])

Source from the content-addressed store, hash-verified

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"})

Callers 5

test_bufferFunction · 0.85
test_forget_streamingFunction · 0.85
test_async_transformerFunction · 0.85
test_fully_async_udfFunction · 0.85

Calls 11

write_linesFunction · 0.90
wait_result_with_checkerFunction · 0.90
get_checkerFunction · 0.85
decrementFunction · 0.85
DecrementerClass · 0.85
clearMethod · 0.80
_bufferMethod · 0.80
writeMethod · 0.80
_forgetMethod · 0.80
await_futuresMethod · 0.80
selectMethod · 0.45

Tested by

no test coverage detected