329604ffa755d88c57528aecc75741c5b058497e,lib/tests/streamlit/version_test.py,VersionTest,test_should_show_new_version_notice_outdated,#VersionTest#,47

Before Change



            version.CHECK_PYPI_PROBABILITY = 1
            get_installed.side_effect = [(1, 0, 0)]
            get_latest.side_effect = [(1, 2, 3)]

            self.assertTrue(should_show_new_version_notice())
            get_installed.assert_called_once()
            get_latest.assert_called_once()

After Change



            version.CHECK_PYPI_PROBABILITY = 1
            get_installed.side_effect = [PkgVersion("1.0.0")]
            get_latest.side_effect = [PkgVersion("1.2.3")]

            self.assertTrue(should_show_new_version_notice())
            get_installed.assert_called_once()
            get_latest.assert_called_once()
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 4

Non-data size: 6

Instances


Project Name: streamlit/streamlit
Commit Name: 329604ffa755d88c57528aecc75741c5b058497e
Time: 2020-03-06
Author: rhone.j@gmail.com
File Name: lib/tests/streamlit/version_test.py
Class Name: VersionTest
Method Name: test_should_show_new_version_notice_outdated


Project Name: streamlit/streamlit
Commit Name: 329604ffa755d88c57528aecc75741c5b058497e
Time: 2020-03-06
Author: rhone.j@gmail.com
File Name: lib/tests/streamlit/version_test.py
Class Name: VersionTest
Method Name: test_should_show_new_version_notice_error


Project Name: streamlit/streamlit
Commit Name: 329604ffa755d88c57528aecc75741c5b058497e
Time: 2020-03-06
Author: rhone.j@gmail.com
File Name: lib/tests/streamlit/version_test.py
Class Name: VersionTest
Method Name: test_should_show_new_version_notice_prerelease


Project Name: streamlit/streamlit
Commit Name: 329604ffa755d88c57528aecc75741c5b058497e
Time: 2020-03-06
Author: rhone.j@gmail.com
File Name: lib/tests/streamlit/version_test.py
Class Name: VersionTest
Method Name: test_should_show_new_version_notice_uptodate