def test_fastmsgmpack_mutable_dataframe(test): expr = t.events # just get back the dataframe query = {'expr': to_tree(expr)} result = test.post('/compute', headers=mimetype(fastmsgpack), data=fastmsgpack.dumps(query)) assert result.status_code == RC.OK data = fastmsgpack.data_loads(fastmsgpack.loads(result.data)['data']) for block in data._data.blocks: # make sure all the blocks are mutable assert block.values.flags.writeable
def test_fastmsgmpack_mutable_dataframe(test): expr = t.events # just get back the dataframe query = {'expr': to_tree(expr)} result = test.post('/compute', headers=mimetype(fastmsgpack), data=fastmsgpack.dumps(query)) assert result.status_code == RC.OK data = fastmsgpack.data_loads(fastmsgpack.loads(result.data)['data']) for block in data._data.blocks: # make sure all the blocks are mutable assert block.values.flags.writeable