f647081e3d1e61173966e5bb7236a30fbef357bf,lib/tests/streamlit/vega_lite_test.py,VegaLiteTest,test_datasets_in_spec,#VegaLiteTest#,101

Before Change



    def test_datasets_in_spec(self):
        Test passing datasets={foo: df} inside the spec.
        queue = []
        dg = DeltaGenerator(queue.append)

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

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

    def test_datasets_correctly_in_spec(self):

After Change


            },
        })

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

    def test_datasets_correctly_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_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_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_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_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_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_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_data_value_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_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_data_in_spec