Exemple #1
0
    def test_to_from_json_line_delimited_compressed(self):
        path = 'tmp/test.json.gz'
        self.tbl.to_json(path, line_delimited=True)

        result_tbl = Table.from_json(path, line_delimited=True)
        assert_matching_tables(self.tbl, result_tbl)
        os.remove(path)
Exemple #2
0
    def test_to_from_json_compressed(self):
        path = 'tmp/test.json.gz'
        self.tbl.to_json(path)

        result_tbl = Table.from_json(path)
        assert_matching_tables(self.tbl, result_tbl)
        os.remove(path)
Exemple #3
0
 def test_to_from_temp_json_compressed(self):
     path = self.tbl.to_json(temp_file_compression='gzip')
     result_tbl = Table.from_json(path)
     assert_matching_tables(self.tbl, result_tbl)
Exemple #4
0
 def test_to_from_temp_json(self):
     path = self.tbl.to_json()
     result_tbl = Table.from_json(path)
     assert_matching_tables(self.tbl, result_tbl)