6df148d84b00e4b8d296a66e53e4debc44cae91c,lib/tests/streamlit/selectbox_test.py,SelectboxTest,test_invalid_value,#SelectboxTest#,88

Before Change


        Test that value must be an int.
        st.selectbox("the label", ("m", "f"), "1")

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

    def test_invalid_value_range(self):
        Test that value must be within the length of the options.

After Change



    def test_invalid_value(self):
        Test that value must be an int.
        with self.assertRaises(TypeError):
            st.selectbox("the label", ("m", "f"), "1")

    def test_invalid_value_range(self):
        Test that value must be within the length of the options.
        with self.assertRaises(ValueError):
            st.selectbox("the label", ("m", "f"), 2)
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 6

Non-data size: 6

Instances


Project Name: streamlit/streamlit
Commit Name: 6df148d84b00e4b8d296a66e53e4debc44cae91c
Time: 2019-08-14
Author: tconkling@gmail.com
File Name: lib/tests/streamlit/selectbox_test.py
Class Name: SelectboxTest
Method Name: test_invalid_value


Project Name: streamlit/streamlit
Commit Name: 6df148d84b00e4b8d296a66e53e4debc44cae91c
Time: 2019-08-14
Author: tconkling@gmail.com
File Name: lib/tests/streamlit/selectbox_test.py
Class Name: SelectboxTest
Method Name: test_invalid_value_range


Project Name: streamlit/streamlit
Commit Name: 6df148d84b00e4b8d296a66e53e4debc44cae91c
Time: 2019-08-14
Author: tconkling@gmail.com
File Name: lib/tests/streamlit/radio_test.py
Class Name: RadioTest
Method Name: test_invalid_value_range


Project Name: streamlit/streamlit
Commit Name: 6df148d84b00e4b8d296a66e53e4debc44cae91c
Time: 2019-08-14
Author: tconkling@gmail.com
File Name: lib/tests/streamlit/radio_test.py
Class Name: RadioTest
Method Name: test_invalid_value


Project Name: streamlit/streamlit
Commit Name: 6df148d84b00e4b8d296a66e53e4debc44cae91c
Time: 2019-08-14
Author: tconkling@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: 6df148d84b00e4b8d296a66e53e4debc44cae91c
Time: 2019-08-14
Author: tconkling@gmail.com
File Name: lib/tests/streamlit/vega_lite_test.py
Class Name: VegaLiteTest
Method Name: test_none_args