8111f82cf188db2332cc0b932033ed27e599051c,lib/tests/streamlit/add_rows_test.py,DeltaGeneratorAddRowsTest,test_add_rows_fails_when_wrong_name,#DeltaGeneratorAddRowsTest#,157
Before Change
// Make sure an "exception" element was enqueued.
el = self._dg._queue._deltas[-1].new_element
self.assertTrue(el.HasField("exception"))
self.assertEqual(el.exception.type, "ValueError")
self.assertTrue(
el.exception.message.startswith(
"Dataset names not supported for") or
el.exception.message.startswith(
After Change
// Create a new data-carrying element (e.g. st.dataframe)
el = method(DATAFRAME)
with self.assertRaises(ValueError):
// This is what we"re testing:
el.add_rows(wrong_name=NEW_ROWS)
// Clear the queue so the next loop is like a brand new test.
self._dg._reset()
self._report_queue.clear()
def test_add_rows_fails_when_wrong_shape(self):
In pattern: SUPERPATTERN
Frequency: 25
Non-data size: 3
Instances Project Name: streamlit/streamlit
Commit Name: 8111f82cf188db2332cc0b932033ed27e599051c
Time: 2019-05-11
Author: thiagot@gmail.com
File Name: lib/tests/streamlit/add_rows_test.py
Class Name: DeltaGeneratorAddRowsTest
Method Name: test_add_rows_fails_when_wrong_name
Project Name: streamlit/streamlit
Commit Name: 8111f82cf188db2332cc0b932033ed27e599051c
Time: 2019-05-11
Author: thiagot@gmail.com
File Name: lib/tests/streamlit/add_rows_test.py
Class Name: DeltaGeneratorAddRowsTest
Method Name: test_add_rows_fails_when_wrong_shape
Project Name: GPflow/GPflow
Commit Name: 126664f626f28f20e9f460c1cf5f6bf4643ce096
Time: 2017-10-30
Author: art.art.v@gmail.com
File Name: testing/test_data_object.py
Class Name: TestDataHolderModels
Method Name: test_vgp
Project Name: GPflow/GPflow
Commit Name: 126664f626f28f20e9f460c1cf5f6bf4643ce096
Time: 2017-10-30
Author: art.art.v@gmail.com
File Name: testing/test_data_object.py
Class Name: TestDataHolderModels
Method Name: test_gpmc
Project Name: streamlit/streamlit
Commit Name: be2a11fb7885ae0a19aeea7a92dbfad15e498c50
Time: 2020-08-21
Author: akrolsmir@gmail.com
File Name: lib/tests/streamlit/write_test.py
Class Name: StreamlitWriteTest
Method Name: test_exception
Project Name: NifTK/NiftyNet
Commit Name: bb8a363efc4d47fd15a6b94ad7fa638a513cbfa1
Time: 2017-11-14
Author: wenqi.li@ucl.ac.uk
File Name: tests/image_reader_test.py
Class Name: ImageReaderTest
Method Name: test_initialisation
Project Name: streamlit/streamlit
Commit Name: 6df148d84b00e4b8d296a66e53e4debc44cae91c
Time: 2019-08-14
Author: tconkling@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: 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: GPflow/GPflow
Commit Name: 126664f626f28f20e9f460c1cf5f6bf4643ce096
Time: 2017-10-30
Author: art.art.v@gmail.com
File Name: testing/test_data_object.py
Class Name: TestDataHolderModels
Method Name: test_sgpmc
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: deepmind/sonnet
Commit Name: bc08dbfbe77554bf3458529285003f0bf92eecd3
Time: 2018-07-17
Author: fviola@google.com
File Name: sonnet/python/modules/nets/vqvae_test.py
Class Name: VqvaeTest
Method Name: testShapeChecking
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
Project Name: GPflow/GPflow
Commit Name: 126664f626f28f20e9f460c1cf5f6bf4643ce096
Time: 2017-10-30
Author: art.art.v@gmail.com
File Name: testing/test_data_object.py
Class Name: TestDataHolderModels
Method Name: test_svgp
Project Name: streamlit/streamlit
Commit Name: 5e8e0ec1b46ac0b322dc48d27494be674ad238fa
Time: 2020-01-27
Author: thiago@streamlit.io
File Name: lib/tests/streamlit/delta_generator_test.py
Class Name: WidgetIdText
Method Name: test_ids_are_equal_when_proto_is_equal
Project Name: GPflow/GPflow
Commit Name: 129f5beda91fb3832f058deacaaf7833027a9a26
Time: 2017-10-28
Author: art.art.v@gmail.com
File Name: testing/test_config.py
Class Name: TestConfigParsing
Method Name: test_config_not_found
Project Name: GPflow/GPflow
Commit Name: 126664f626f28f20e9f460c1cf5f6bf4643ce096
Time: 2017-10-30
Author: art.art.v@gmail.com
File Name: testing/test_data_object.py
Class Name: TestDataHolderModels
Method Name: test_gpr
Project Name: GPflow/GPflow
Commit Name: 126664f626f28f20e9f460c1cf5f6bf4643ce096
Time: 2017-10-30
Author: art.art.v@gmail.com
File Name: testing/test_data_object.py
Class Name: TestDataHolderModels
Method Name: test_sgpr
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: deepmind/sonnet
Commit Name: adf3852165732ce6bfe5198fab8452b242a09531
Time: 2019-08-23
Author: tomhennigan@google.com
File Name: sonnet/src/once_test.py
Class Name: OnceTest
Method Name: test_always_returns_none
Project Name: google/deepvariant
Commit Name: 0a159f32075b2e8a9c0875ff54a68b7ed457bd9a
Time: 2018-02-27
Author: mdepristo@google.com
File Name: deepvariant/make_examples_test.py
Class Name: RegionProcessorTest
Method Name: test_label_variant_raises_for_non_confident_variant
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/delta_generator_test.py
Class Name: DeltaGeneratorTest
Method Name: test_with_element_exception
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/delta_generator_test.py
Class Name: DeltaGeneratorImageTest
Method Name: test_unequal_images_and_captions_error
Project Name: streamlit/streamlit
Commit Name: 5e8e0ec1b46ac0b322dc48d27494be674ad238fa
Time: 2020-01-27
Author: thiago@streamlit.io
File Name: lib/tests/streamlit/delta_generator_test.py
Class Name: WidgetIdText
Method Name: test_ids_are_equal_when_keys_are_equal