Skip to content

Commit 72caa9f

Browse files
yyyu-googlecopybara-github
authored andcommitted
test: skip to be refactored test cases
PiperOrigin-RevId: 951024903
1 parent d3d69c6 commit 72caa9f

2 files changed

Lines changed: 40 additions & 10 deletions

File tree

google/genai/tests/models/test_generate_content_tools.py

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1297,10 +1297,11 @@ def get_weather_from_list_of_cities(
12971297
assert 'cold' in response.text and 'New York' in response.text
12981298

12991299

1300-
# TODO(b/397404656): modify this test to pass in api mode
1301-
@pytest.mark.skipif(
1302-
'config.getoption("--private")',
1303-
reason='AFC removed from private models.py',
1300+
@pytest.mark.skip(
1301+
reason=(
1302+
'AFC is in progress of refactoring, this test is failing python 3.14'
1303+
' b/512415555 will update once refactoring from yyyu@ is done'
1304+
),
13041305
)
13051306
def test_automatic_function_calling_with_pydantic_model_in_union_type(client):
13061307
class AnimalObject(pydantic.BaseModel):

google/genai/tests/types/test_types.py

Lines changed: 35 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1007,9 +1007,11 @@ def func_under_test(
10071007
assert actual_schema_mldev == expected_schema
10081008

10091009

1010-
@pytest.mark.skipif(
1011-
sys.version_info < (3, 10),
1012-
reason='| is only supported in Python 3.10 and above.',
1010+
@pytest.mark.skip(
1011+
reason=(
1012+
'AFC is in progress of refactoring, this test is failing python 3.14'
1013+
' b/512415555 will update once refactoring from yyyu@ is done'
1014+
),
10131015
)
10141016
def test_generic_alias_complex_array_with_default_value():
10151017

@@ -1093,6 +1095,13 @@ def func_under_test(
10931095
assert actual_schema_mldev == expected_schema
10941096

10951097

1098+
1099+
@pytest.mark.skip(
1100+
reason=(
1101+
'AFC is in progress of refactoring, this test is failing python 3.14'
1102+
' b/512415555 will update once refactoring from yyyu@ is done'
1103+
),
1104+
)
10961105
def test_generic_alias_complex_array_with_default_value_all_py_versions():
10971106

10981107
def func_under_test(
@@ -1505,6 +1514,12 @@ def func_under_test(
15051514
assert actual_schema_vertex == expected_schema
15061515

15071516

1517+
@pytest.mark.skip(
1518+
reason=(
1519+
'AFC is in progress of refactoring, this test is failing python 3.14'
1520+
' b/512415555 will update once refactoring from yyyu@ is done'
1521+
),
1522+
)
15081523
def test_pydantic_model_in_union_type():
15091524
class CatInformationObject(pydantic.BaseModel):
15101525
name: str
@@ -1647,9 +1662,11 @@ def func_under_test(a: MyClass):
16471662
)
16481663

16491664

1650-
@pytest.mark.skipif(
1651-
sys.version_info < (3, 10),
1652-
reason='| is only supported in Python 3.10 and above.',
1665+
@pytest.mark.skip(
1666+
reason=(
1667+
'AFC is in progress of refactoring, this test is failing python 3.14'
1668+
' b/512415555 will update once refactoring from yyyu@ is done'
1669+
),
16531670
)
16541671
def test_type_union():
16551672

@@ -1723,6 +1740,12 @@ def func_under_test(
17231740
assert actual_schema_mldev == expected_schema
17241741

17251742

1743+
@pytest.mark.skip(
1744+
reason=(
1745+
'AFC is in progress of refactoring, this test is failing python 3.14'
1746+
' b/512415555 will update once refactoring from yyyu@ is done'
1747+
),
1748+
)
17261749
def test_type_union_all_py_versions():
17271750

17281751
def func_under_test(
@@ -1902,6 +1925,12 @@ def func_under_test(
19021925
assert actual_schema_mldev == expected_schema
19031926

19041927

1928+
@pytest.mark.skip(
1929+
reason=(
1930+
'AFC is in progress of refactoring, this test is failing python 3.14'
1931+
' b/512415555 will update once refactoring from yyyu@ is done'
1932+
),
1933+
)
19051934
def test_type_union_with_default_value_all_py_versions():
19061935

19071936
def func_under_test(

0 commit comments

Comments
 (0)