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

Function test_fs_plaintext

python/pathway/tests/test_io.py:755–774  ·  view source on GitHub ↗
(tmp_path: pathlib.Path)

Source from the content-addressed store, hash-verified

753
754
755def test_fs_plaintext(tmp_path: pathlib.Path):
756 input_path = tmp_path / "input.txt"
757 write_lines(input_path, "foo\nbar\nbaz")
758
759 table = pw.io.fs.read(
760 str(input_path), format="plaintext", mode="static"
761 ).update_types(data=str)
762
763 assert_table_equality_wo_index(
764 table,
765 T(
766 """
767 data
768 foo
769 bar
770 baz
771 """,
772 ),
773 )
774 pw.debug.compute_and_print(table)
775
776
777@needs_multiprocessing_fork

Callers

nothing calls this directly

Calls 3

write_linesFunction · 0.90
TFunction · 0.90
update_typesMethod · 0.80

Tested by

no test coverage detected