329604ffa755d88c57528aecc75741c5b058497e,lib/tests/streamlit/version_test.py,VersionTest,test_should_show_new_version_notice_prerelease,#VersionTest#,77
Before Change
) as get_installed:
version.CHECK_PYPI_PROBABILITY = 1
get_installed.side_effect = [(1, 2, 3)]
get_latest.side_effect = [(1, 0, 0)]
self.assertFalse(should_show_new_version_notice())
get_installed.assert_called_once()
After Change
) as get_installed:
version.CHECK_PYPI_PROBABILITY = 1
get_installed.side_effect = [PkgVersion("1.2.3")]
get_latest.side_effect = [PkgVersion("1.0.0")]
self.assertFalse(should_show_new_version_notice())
get_installed.assert_called_once()
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_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_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_uptodate