(tmp_path: pathlib.Path)
| 753 | |
| 754 | |
| 755 | def 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 |
nothing calls this directly
no test coverage detected