Skip to content

Commit 1c05e82

Browse files
committed
2023-11-05 : Synchronize codes to the origin repository.
1 parent 2f338a3 commit 1c05e82

File tree

1 file changed

+13
-1
lines changed

1 file changed

+13
-1
lines changed

test/tests_one.py

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,13 +18,25 @@
1818

1919
global_api = None
2020

21-
class TestAutoFilterControllerApi(unittest.TestCase):
21+
class TestOneCase(unittest.TestCase):
2222
def setUp(self):
2323
warnings.simplefilter('ignore', ResourceWarning)
2424
global global_api
2525
if global_api is None:
2626
global_api = CellsApi(AuthUtil.GetClientId(),AuthUtil.GetClientSecret(),"v3.0",AuthUtil.GetBaseUrl())
2727
self.api = global_api
28+
def test_upload_file(self):
29+
remote_folder = 'TestData/In'
30+
31+
local_name = 'Book1.xlsx'
32+
remote_name = 'Book1.xlsx'
33+
34+
mapFiles = {
35+
local_name: os.path.dirname(os.path.realpath(__file__)) + "/../TestData/" +local_name
36+
}
37+
38+
request = UploadFileRequest( mapFiles, remote_folder + '/' + remote_name,storage_name= '')
39+
self.api.upload_file(request)
2840

2941
def tearDown(self):
3042
pass

0 commit comments

Comments
 (0)