08662bd1e1a9f10d45af2a7df4341c8bd85739a2,lib/tests/streamlit/watcher/PollingFileWatcher_test.py,PollingFileWatcherTest,test_callback_not_called_if_same_md5,#PollingFileWatcherTest#,96
Before Change
ro = PollingFileWatcher.PollingFileWatcher("/this/is/my/file.py", cb)
try:
time.sleep(2 * PollingFileWatcher._POLLING_PERIOD_SECS)
except AssertionError:
pass
cb_marker.assert_not_called()
self.os.stat = lambda x: FakeStat(102)
// Same MD5:
// self.mock_util.calc_md5_with_blocking_retries = lambda x: "2"
// This is the test:
try:
time.sleep(2 * PollingFileWatcher._POLLING_PERIOD_SECS)
except AssertionError:
pass
cb_marker.assert_not_called()
ro.close()
After Change
watcher = PollingFileWatcher.PollingFileWatcher("/this/is/my/file.py", callback)
self._run_executor_tasks()
callback.assert_not_called()
self.os_mock.stat = lambda x: FakeStat(102)
// Same MD5:
// self.mock_util.calc_md5_with_blocking_retries = lambda x: "2"
// This is the test:
self._run_executor_tasks()
callback.assert_not_called()
watcher.close()
In pattern: SUPERPATTERN
Frequency: 3
Non-data size: 11
Instances
Project Name: streamlit/streamlit
Commit Name: 08662bd1e1a9f10d45af2a7df4341c8bd85739a2
Time: 2020-07-14
Author: tconkling@gmail.com
File Name: lib/tests/streamlit/watcher/PollingFileWatcher_test.py
Class Name: PollingFileWatcherTest
Method Name: test_callback_not_called_if_same_md5
Project Name: streamlit/streamlit
Commit Name: 08662bd1e1a9f10d45af2a7df4341c8bd85739a2
Time: 2020-07-14
Author: tconkling@gmail.com
File Name: lib/tests/streamlit/watcher/PollingFileWatcher_test.py
Class Name: PollingFileWatcherTest
Method Name: test_file_watch_and_callback
Project Name: streamlit/streamlit
Commit Name: 08662bd1e1a9f10d45af2a7df4341c8bd85739a2
Time: 2020-07-14
Author: tconkling@gmail.com
File Name: lib/tests/streamlit/watcher/PollingFileWatcher_test.py
Class Name: PollingFileWatcherTest
Method Name: test_callback_not_called_if_same_mtime
Project Name: streamlit/streamlit
Commit Name: 08662bd1e1a9f10d45af2a7df4341c8bd85739a2
Time: 2020-07-14
Author: tconkling@gmail.com
File Name: lib/tests/streamlit/watcher/PollingFileWatcher_test.py
Class Name: PollingFileWatcherTest
Method Name: test_callback_not_called_if_same_md5