Skip to content

Commit 1edcfab

Browse files
committed
update test
1 parent b25a2ab commit 1edcfab

File tree

1 file changed

+10
-8
lines changed

1 file changed

+10
-8
lines changed

tests/system/small/bigquery/test_ai.py

Lines changed: 10 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -47,15 +47,17 @@ def test_ai_generate_bool_with_pandas(session):
4747
s2 = bpd.Series(["fruit", "tree"], session=session)
4848
prompt = (s1, " is a ", s2)
4949

50-
result = bbq.ai.generate_bool(prompt, endpoint="gemini-2.5-flash").struct.field(
51-
"result"
52-
)
50+
result = bbq.ai.generate_bool(prompt, endpoint="gemini-2.5-flash")
5351

54-
pandas.testing.assert_series_equal(
55-
result.to_pandas(),
56-
pd.Series([True, False], name="result"),
57-
check_dtype=False,
58-
check_index=False,
52+
assert _contains_no_nulls(result)
53+
assert result.dtype == pd.ArrowDtype(
54+
pa.struct(
55+
(
56+
pa.field("result", pa.bool_()),
57+
pa.field("full_response", pa.string()),
58+
pa.field("status", pa.string()),
59+
)
60+
)
5961
)
6062

6163

0 commit comments

Comments
 (0)