76d9ed55bce7398a533e93eb5a7ec1e83d549333,lib/tests/streamlit/UploadedFileManager_test.py,UploadedFileManagerTest,test_remove_all_files,#UploadedFileManagerTest#,68

Before Change


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

        self.mgr.add_file(FILE_1A)
        self.mgr.add_file(FILE_2)

        self.mgr.remove_session_files("session")
        self.assertIsNone(self.mgr.get_file_data("session", "widget"))
        self.assertEqual(b"FILE_2", self.mgr.get_file_data("session2", "widget"))

After Change



        // 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])

        event1 = UploadedFileList("session1", "widget", [file1])
        event2 = UploadedFileList("session2", "widget", [file1])
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 5

Instances


Project Name: streamlit/streamlit
Commit Name: 76d9ed55bce7398a533e93eb5a7ec1e83d549333
Time: 2020-03-10
Author: tconkling@gmail.com
File Name: lib/tests/streamlit/UploadedFileManager_test.py
Class Name: UploadedFileManagerTest
Method Name: test_remove_all_files


Project Name: streamlit/streamlit
Commit Name: 76d9ed55bce7398a533e93eb5a7ec1e83d549333
Time: 2020-03-10
Author: tconkling@gmail.com
File Name: lib/tests/streamlit/UploadedFileManager_test.py
Class Name: UploadedFileManagerTest
Method Name: test_add_file


Project Name: streamlit/streamlit
Commit Name: 76d9ed55bce7398a533e93eb5a7ec1e83d549333
Time: 2020-03-10
Author: tconkling@gmail.com
File Name: lib/tests/streamlit/Server_test.py
Class Name: ServerTest
Method Name: test_orphaned_upload_file_deletion