Skip to content

Commit f74f650

Browse files
test: remove auto cleanup for file query test
1 parent debc880 commit f74f650

File tree

1 file changed

+2
-5
lines changed

1 file changed

+2
-5
lines changed

tests/integration/file/test_file_client.py

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -209,7 +209,7 @@ def test__back_off_retry__works(self, client: FileClient, test_file):
209209
def test__query_files_linq__filter_by_name_succeeds(
210210
self, client: FileClient, test_file, random_filename_extension: str
211211
):
212-
file_id = test_file(file_name=random_filename_extension, cleanup=False)
212+
file_id = test_file(file_name=random_filename_extension)
213213

214214
query_request = FileLinqQueryRequest(
215215
filter=f'name == "{random_filename_extension}"'
@@ -221,14 +221,11 @@ def test__query_files_linq__filter_by_name_succeeds(
221221
assert response.available_files[0].id == file_id
222222
assert response.available_files[0].properties is not None
223223
assert (
224-
response.available_files[0].properties["Name"]
225-
== random_filename_extension
224+
response.available_files[0].properties["Name"] == random_filename_extension
226225
)
227226
assert response.total_count.value == 1
228227
assert response.total_count.relation == "eq"
229228

230-
client.delete_file(id=file_id)
231-
232229
def test__query_files_linq__invalid_filter_raises(self, client: FileClient):
233230
query_request = FileLinqQueryRequest(filter="invalid filter syntax:")
234231

0 commit comments

Comments
 (0)