File tree Expand file tree Collapse file tree 1 file changed +10
-8
lines changed
tests/system/small/bigquery Expand file tree Collapse file tree 1 file changed +10
-8
lines changed Original file line number Diff line number Diff 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
You can’t perform that action at this time.
0 commit comments