f70c2db914e7851d91259122115f73c4e4fcbda7,lib/tests/streamlit/uploaded_file_manager_test.py,UploadedFileManagerTest,test_remove_widget_files,#UploadedFileManagerTest#,63

Before Change


        self.mgr.remove_session_files("non-report")

        // Add two files with different session IDs, but the same widget ID.
        self.mgr.add_files("session1", "widget", [file1])
        self.mgr.add_files("session2", "widget", [file1])

        self.mgr.remove_files("session1", "widget")
        self.assertIsNone(self.mgr.get_files("session1", "widget"))

After Change


        self.mgr.remove_session_files("non-report")

        // Add two files with different session IDs, but the same widget ID.
        f1 = self.mgr.add_file("session1", "widget", FILE_1)
        f2 = self.mgr.add_file("session2", "widget", FILE_1)

        self.mgr.remove_files("session1", "widget")
        self.assertEqual([], self.mgr.get_all_files("session1", "widget"))
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 5

Instances


Project Name: streamlit/streamlit
Commit Name: f70c2db914e7851d91259122115f73c4e4fcbda7
Time: 2021-03-16
Author: tconkling@gmail.com
File Name: lib/tests/streamlit/uploaded_file_manager_test.py
Class Name: UploadedFileManagerTest
Method Name: test_remove_widget_files


Project Name: streamlit/streamlit
Commit Name: f70c2db914e7851d91259122115f73c4e4fcbda7
Time: 2021-03-16
Author: tconkling@gmail.com
File Name: lib/tests/streamlit/uploaded_file_manager_test.py
Class Name: UploadedFileManagerTest
Method Name: test_remove_session_files


Project Name: streamlit/streamlit
Commit Name: f70c2db914e7851d91259122115f73c4e4fcbda7
Time: 2021-03-16
Author: tconkling@gmail.com
File Name: lib/tests/streamlit/uploaded_file_manager_test.py
Class Name: UploadedFileManagerTest
Method Name: test_remove_file