@@ -60,16 +60,16 @@ def invalid_file_id(client: FileClient) -> str:
6060 if files .total_count == 0 :
6161 return file_id
6262
63- raise Exception (f"Failed to generate a invalid-file-id in { MAX_RETRIES } attemps ." )
63+ raise Exception (f"Failed to generate a invalid-file-id in { MAX_RETRIES } attempts ." )
6464
6565
6666@pytest .fixture (scope = "class" )
67- def random_filename_extn () -> str :
67+ def random_filename_extension () -> str :
6868 """Generate a random filename and extension."""
6969 rand_file_name = "" .join (choices (string .ascii_letters + string .digits , k = 10 ))
70- rand_file_extn = "" .join (choices (string .ascii_letters , k = 3 ))
70+ rand_file_extension = "" .join (choices (string .ascii_letters , k = 3 ))
7171
72- return f"{ PREFIX } { rand_file_name } .{ rand_file_extn } "
72+ return f"{ PREFIX } { rand_file_name } .{ rand_file_extension } "
7373
7474
7575@pytest .mark .enterprise
@@ -80,18 +80,18 @@ def test__api_info__returns(self, client: FileClient):
8080 assert len (api_info .dict ()) != 0
8181
8282 def test__upload_get_delete_files__succeeds (
83- self , client : FileClient , test_file , random_filename_extn
83+ self , client : FileClient , test_file , random_filename_extension
8484 ):
8585 # upload a file
86- file_id = test_file (file_name = random_filename_extn , cleanup = False )
86+ file_id = test_file (file_name = random_filename_extension , cleanup = False )
8787 assert file_id != ""
8888
8989 files = client .get_files (ids = [file_id ])
9090 assert files .total_count == 1
9191 assert len (files .available_files ) == 1
9292 assert files .available_files [0 ].id == file_id
9393 assert files .available_files [0 ].properties is not None
94- assert files .available_files [0 ].properties ["Name" ] == random_filename_extn
94+ assert files .available_files [0 ].properties ["Name" ] == random_filename_extension
9595
9696 client .delete_file (id = file_id )
9797
@@ -132,10 +132,10 @@ def test__download_file__succeeds(
132132 client : FileClient ,
133133 test_file ,
134134 binary_file_data : BinaryIO ,
135- random_filename_extn : str ,
135+ random_filename_extension : str ,
136136 ):
137137 # Upload the test file with random name
138- file_id = test_file (file_name = random_filename_extn )
138+ file_id = test_file (file_name = random_filename_extension )
139139
140140 # verify the file content
141141 downloaded_data = client .download_file (id = file_id )
0 commit comments