Skip to content

Commit b4ac406

Browse files
IvanLHcopybara-github
authored andcommitted
feat:Added Async wrappers for the Files Module operations
PiperOrigin-RevId: 757953630
1 parent a3fc532 commit b4ac406

File tree

2 files changed

+9
-1
lines changed

2 files changed

+9
-1
lines changed

google/genai/tests/files/test_delete.py

+5-1
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,10 @@
2525
name='test_delete',
2626
parameters=types._DeleteFileParameters(name='files/1vx8znuf0yje'),
2727
exception_if_vertex='only supported in the Gemini Developer client',
28+
skip_in_api_mode=(
29+
'The files have a TTL, they cannot be reliably retrieved for a long'
30+
' time.'
31+
),
2832
),
2933
]
3034

@@ -39,4 +43,4 @@
3943
@pytest.mark.asyncio
4044
async def test_async(client):
4145
with pytest_helper.exception_if_vertex(client, ValueError):
42-
file = await client.aio.files.get(name='files/vjvu9fwk2qj8')
46+
file = await client.aio.files.get(name='files/vjvu9fwk2qj8')

google/genai/tests/files/test_get.py

+4
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,10 @@
2525
name='test_get',
2626
parameters=types._GetFileParameters(name='files/vjvu9fwk2qj8'),
2727
exception_if_vertex='only supported in the Gemini Developer client',
28+
skip_in_api_mode=(
29+
'The files have a TTL, they cannot be reliably retrieved for a long'
30+
' time.'
31+
),
2832
),
2933
]
3034

0 commit comments

Comments
 (0)