0f1a774069fe78d2df5ecbdc7de533826187fd75,lib/tests/streamlit/delta_generator_test.py,DeltaGeneratorChartTest,test_area_chart,#DeltaGeneratorChartTest#,422
Before Change
element = self.get_delta_from_queue().new_element
self.assertEqual(element.chart.type, "AreaChart")
self.assertEqual(element.chart.data.data.cols[0].int64s.data[0], 20)
self.assertEqual(len(element.chart.components), 8)
def test_bar_chart(self):
Test dg.bar_chart.
data = pd.DataFrame([[20, 30, 50]], columns=["a", "b", "c"])
After Change
st.area_chart(data)
element = self.get_delta_from_queue().new_element.vega_lite_chart
chart_spec = json.loads(element.spec)
self.assertEqual(chart_spec["mark"], "area")
self.assertEqual(
element.datasets[0].data.data.cols[2].int64s.data[0], 20)
In pattern: SUPERPATTERN
Frequency: 5
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_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
Project Name: pantsbuild/pants
Commit Name: 9eb8ab2406ae4552df2407197a36b52da95c55a8
Time: 2020-07-14
Author: benjyw@gmail.com
File Name: src/python/pants/help/help_integration_test.py
Class Name: TestHelpIntegration
Method Name: test_help_all
Project Name: CyberReboot/poseidon
Commit Name: 312594ada78c06e9dd919aef36c4da0a36328f0b
Time: 2016-08-31
Author: tlanham@cs.stanford.edu
File Name: poseidon/poseidonStorage/test_poseidonStorage.py
Class Name:
Method Name: test_db_collection_names
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