(file_fixture)
| 238 | |
| 239 | @pytest.mark.pandas |
| 240 | def test_file_read_pandas(file_fixture): |
| 241 | frames = [batch.to_pandas() for batch in file_fixture.write_batches()] |
| 242 | |
| 243 | file_contents = pa.BufferReader(file_fixture.get_source()) |
| 244 | reader = pa.ipc.open_file(file_contents) |
| 245 | result = reader.read_pandas() |
| 246 | |
| 247 | expected = pd.concat(frames).reset_index(drop=True) |
| 248 | assert_frame_equal(result, expected) |
| 249 | |
| 250 | |
| 251 | def test_file_pathlib(file_fixture, tmpdir): |
nothing calls this directly
no test coverage detected