11 changed files with 100 additions and 31 deletions
@ -0,0 +1,10 @@ |
|||||||
|
from .utils.miniIo import upload_file |
||||||
|
|
||||||
|
|
||||||
|
# 测试上传文件 |
||||||
|
def test_upload_file(): |
||||||
|
upload_file("test.txt", "test.txt") |
||||||
|
|
||||||
|
|
||||||
|
if __name__ == "__main__": |
||||||
|
test_upload_file() |
||||||
@ -0,0 +1,20 @@ |
|||||||
|
from auto_sliceing_operate.utils.miniIo import upload_file,check_file_exists,delete_file,download_file |
||||||
|
|
||||||
|
# 测试上传文件 |
||||||
|
def test_upload_file(): |
||||||
|
upload_file("test.txt", "test.txt") |
||||||
|
|
||||||
|
# 测试下载文件 |
||||||
|
def test_download_file(): |
||||||
|
download_file("test.txt", "testAAA.txt") |
||||||
|
|
||||||
|
# 测试删除文件 |
||||||
|
def test_delete_file(): |
||||||
|
delete_file("test.txt") |
||||||
|
|
||||||
|
# 测试检查文件是否存在 |
||||||
|
def test_check_file_exists(): |
||||||
|
print(check_file_exists("test.txt")) |
||||||
|
|
||||||
|
|
||||||
|
test_download_file() |
||||||
Loading…
Reference in new issue