f647081e3d1e61173966e5bb7236a30fbef357bf,lib/tests/streamlit/vega_lite_test.py,VegaLiteTest,test_data_in_spec,#VegaLiteTest#,71

Before Change



    def test_data_in_spec(self):
        Test passing data=df inside the spec.
        queue = []
        dg = DeltaGenerator(queue.append)

        dg.vega_lite_chart({
            "mark": "rect",
            "data": df1,
        })

        c = queue[-1].new_element.vega_lite_chart
        self.assertEqual(c.HasField("data"), True)
        self.assertDictEqual(json.loads(c.spec), {"mark": "rect"})

    def test_data_value_in_spec(self):

After Change


            "data": df1,
        })

        c = self.get_vega_lite_delta()
        self.assertEqual(c.HasField("data"), True)
        self.assertDictEqual(json.loads(c.spec), {"mark": "rect"})

    def test_data_value_in_spec(self):
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 9

Non-data size: 12

Instances


Project Name: streamlit/streamlit
Commit Name: f647081e3d1e61173966e5bb7236a30fbef357bf
Time: 2019-05-10
Author: thiagot@gmail.com
File Name: lib/tests/streamlit/vega_lite_test.py
Class Name: VegaLiteTest
Method Name: test_data_in_spec


Project Name: streamlit/streamlit
Commit Name: f647081e3d1e61173966e5bb7236a30fbef357bf
Time: 2019-05-10
Author: thiagot@gmail.com
File Name: lib/tests/streamlit/vega_lite_test.py
Class Name: VegaLiteTest
Method Name: test_spec_in_arg1


Project Name: streamlit/streamlit
Commit Name: f647081e3d1e61173966e5bb7236a30fbef357bf
Time: 2019-05-10
Author: thiagot@gmail.com
File Name: lib/tests/streamlit/vega_lite_test.py
Class Name: VegaLiteTest
Method Name: test_datasets_correctly_in_spec


Project Name: streamlit/streamlit
Commit Name: f647081e3d1e61173966e5bb7236a30fbef357bf
Time: 2019-05-10
Author: thiagot@gmail.com
File Name: lib/tests/streamlit/vega_lite_test.py
Class Name: VegaLiteTest
Method Name: test_none_args


Project Name: streamlit/streamlit
Commit Name: f647081e3d1e61173966e5bb7236a30fbef357bf
Time: 2019-05-10
Author: thiagot@gmail.com
File Name: lib/tests/streamlit/vega_lite_test.py
Class Name: VegaLiteTest
Method Name: test_datasets_in_spec


Project Name: streamlit/streamlit
Commit Name: f647081e3d1e61173966e5bb7236a30fbef357bf
Time: 2019-05-10
Author: thiagot@gmail.com
File Name: lib/tests/streamlit/vega_lite_test.py
Class Name: VegaLiteTest
Method Name: test_dict_unflatten


Project Name: streamlit/streamlit
Commit Name: f647081e3d1e61173966e5bb7236a30fbef357bf
Time: 2019-05-10
Author: thiagot@gmail.com
File Name: lib/tests/streamlit/vega_lite_test.py
Class Name: VegaLiteTest
Method Name: test_no_args


Project Name: streamlit/streamlit
Commit Name: f647081e3d1e61173966e5bb7236a30fbef357bf
Time: 2019-05-10
Author: thiagot@gmail.com
File Name: lib/tests/streamlit/vega_lite_test.py
Class Name: VegaLiteTest
Method Name: test_spec_but_no_data


Project Name: streamlit/streamlit
Commit Name: f647081e3d1e61173966e5bb7236a30fbef357bf
Time: 2019-05-10
Author: thiagot@gmail.com
File Name: lib/tests/streamlit/vega_lite_test.py
Class Name: VegaLiteTest
Method Name: test_data_value_in_spec