99ac030ac2eac3a8f3b8b9977558c930387de693,lib/tests/streamlit/delta_generator_test.py,DeltaGeneratorProgressTest,test_progress_bad_values,#DeltaGeneratorProgressTest#,343

Before Change


        for value in values:
            self._dg.progress(value)

            element = self._report_queue._queue[-1].delta.new_element
            self.assertEqual(element.exception.type, "ValueError")

        self._dg.progress("some string")

        element = self._report_queue._queue[-1].delta.new_element
        self.assertEqual(element.exception.type, "TypeError")

After Change


        for value in values:
            st.progress(value)

            element = self.get_delta_from_queue().new_element
            self.assertEqual(element.exception.type, "ValueError")

        st.progress("some string")

        element = self.get_delta_from_queue().new_element
        self.assertEqual(element.exception.type, "TypeError")


class DeltaGeneratorChartTest(util.DeltaGeneratorTestCase):
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 4

Non-data size: 16

Instances


Project Name: streamlit/streamlit
Commit Name: 99ac030ac2eac3a8f3b8b9977558c930387de693
Time: 2019-05-14
Author: thiagot@gmail.com
File Name: lib/tests/streamlit/delta_generator_test.py
Class Name: DeltaGeneratorProgressTest
Method Name: test_progress_bad_values


Project Name: streamlit/streamlit
Commit Name: 99ac030ac2eac3a8f3b8b9977558c930387de693
Time: 2019-05-14
Author: thiagot@gmail.com
File Name: lib/tests/streamlit/add_rows_test.py
Class Name: DeltaGeneratorAddRowsTest
Method Name: test_simple_add_rows_with_clear_queue


Project Name: streamlit/streamlit
Commit Name: 99ac030ac2eac3a8f3b8b9977558c930387de693
Time: 2019-05-14
Author: thiagot@gmail.com
File Name: lib/tests/streamlit/delta_generator_test.py
Class Name: DeltaGeneratorImageTest
Method Name: test_image_from_url


Project Name: streamlit/streamlit
Commit Name: 99ac030ac2eac3a8f3b8b9977558c930387de693
Time: 2019-05-14
Author: thiagot@gmail.com
File Name: lib/tests/streamlit/add_rows_test.py
Class Name: DeltaGeneratorAddRowsTest
Method Name: test_named_add_rows_with_clear_queue


Project Name: streamlit/streamlit
Commit Name: 99ac030ac2eac3a8f3b8b9977558c930387de693
Time: 2019-05-14
Author: thiagot@gmail.com
File Name: lib/tests/streamlit/delta_generator_test.py
Class Name: DeltaGeneratorProgressTest
Method Name: test_progress_bad_values