ef3b1f7a4d88b8f869afeb10184a7f437f4d764f,bokeh/charts/tests/test_data_adapter.py,TestDataAdapter,test_list,#TestDataAdapter#,38

Before Change


        self._values["third"] = [6., 4., 3.]

    def test_list(self):
        values = list(self._values.values())
        da = DataAdapter(values)

        self.assertEqual(da.values(), list(self._values.values()))
        self.assertEqual(da.columns, ["0", "1", "2"])

After Change


    def test_list(self):
        ds = ChartDataSource.from_data(*self._list_data)
        assert len(ds.columns) == 2
        assert len(ds.index) == 4

    def test_array(self):
        ds = ChartDataSource.from_data(*self._array_data)
        assert len(ds.columns) == 2
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 5

Instances


Project Name: bokeh/bokeh
Commit Name: ef3b1f7a4d88b8f869afeb10184a7f437f4d764f
Time: 2015-08-12
Author: nroth@dealnews.com
File Name: bokeh/charts/tests/test_data_adapter.py
Class Name: TestDataAdapter
Method Name: test_list


Project Name: bokeh/bokeh
Commit Name: ef3b1f7a4d88b8f869afeb10184a7f437f4d764f
Time: 2015-08-12
Author: nroth@dealnews.com
File Name: bokeh/charts/tests/test_data_adapter.py
Class Name: TestDataAdapter
Method Name: test_array


Project Name: CellProfiler/CellProfiler
Commit Name: 53059cec9053a8429b7f0a8f06e6cbe1672b60e7
Time: 2013-01-16
Author: leek@broadinstitute.org
File Name: cellprofiler/modules/groups.py
Class Name: Groups
Method Name: on_activated