(self)
| 173 | } |
| 174 | |
| 175 | def test_simple_ints(self): |
| 176 | # Infer integer columns |
| 177 | rows = b'{"a": 1,"b": 2, "c": 3}\n{"a": 4,"b": 5, "c": 6}\n' |
| 178 | table = self.read_bytes(rows) |
| 179 | schema = pa.schema([('a', pa.int64()), |
| 180 | ('b', pa.int64()), |
| 181 | ('c', pa.int64())]) |
| 182 | assert table.schema == schema |
| 183 | assert table.to_pydict() == { |
| 184 | 'a': [1, 4], |
| 185 | 'b': [2, 5], |
| 186 | 'c': [3, 6], |
| 187 | } |
| 188 | |
| 189 | def test_simple_varied(self): |
| 190 | # Infer various kinds of data |
nothing calls this directly
no test coverage detected