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