76d9ed55bce7398a533e93eb5a7ec1e83d549333,lib/tests/streamlit/Server_test.py,ServerTest,test_orphaned_upload_file_deletion,#ServerTest#,323
Before Change
yield self.ws_connect()
// "Upload a file" for a session that doesn"t exist
self.server._uploaded_file_mgr.add_file(
UploadedFile(
session_id="no_such_session",
widget_id="widget_id",
name="file.txt",
data=b"file contents",
)
)
self.assertIsNone(
self.server._uploaded_file_mgr.get_file_data(
"no_such_session", "widget_id"
After Change
yield self.ws_connect()
// "Upload a file" for a session that doesn"t exist
self.server._uploaded_file_mgr.add_files(
session_id="no_such_session",
widget_id="widget_id",
files=[UploadedFile("file.txt", b"123")],
)
self.assertIsNone(
self.server._uploaded_file_mgr.get_files("no_such_session", "widget_id")
)
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/Server_test.py
Class Name: ServerTest
Method Name: test_orphaned_upload_file_deletion
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