0f1a774069fe78d2df5ecbdc7de533826187fd75,lib/tests/streamlit/delta_generator_test.py,DeltaGeneratorChartTest,test_bar_chart,#DeltaGeneratorChartTest#,433
Before Change
element = self.get_delta_from_queue().new_element
self.assertEqual(element.chart.type, "BarChart")
self.assertEqual(element.chart.data.data.cols[0].int64s.data[0], 20)
self.assertEqual(len(element.chart.components), 8)
class DeltaGeneratorImageTest(testutil.DeltaGeneratorTestCase):
Test DeltaGenerator Images
After Change
st.bar_chart(data)
element = self.get_delta_from_queue().new_element.vega_lite_chart
chart_spec = json.loads(element.spec)
self.assertEqual(chart_spec["mark"], "bar")
self.assertEqual(
element.datasets[0].data.data.cols[2].int64s.data[0], 20)
In pattern: SUPERPATTERN
Frequency: 3
Non-data size: 5
Instances Project Name: streamlit/streamlit
Commit Name: 0f1a774069fe78d2df5ecbdc7de533826187fd75
Time: 2019-09-23
Author: arraydude@gmail.com
File Name: lib/tests/streamlit/delta_generator_test.py
Class Name: DeltaGeneratorChartTest
Method Name: test_bar_chart
Project Name: streamlit/streamlit
Commit Name: 0f1a774069fe78d2df5ecbdc7de533826187fd75
Time: 2019-09-23
Author: arraydude@gmail.com
File Name: lib/tests/streamlit/delta_generator_test.py
Class Name: DeltaGeneratorChartTest
Method Name: test_area_chart
Project Name: streamlit/streamlit
Commit Name: 0f1a774069fe78d2df5ecbdc7de533826187fd75
Time: 2019-09-23
Author: arraydude@gmail.com
File Name: lib/tests/streamlit/delta_generator_test.py
Class Name: DeltaGeneratorChartTest
Method Name: test_line_chart