@@ -73,14 +73,14 @@ async def test_parse_pdf_to_pages() -> None:
73
73
fig_1_text .text = "stub" # Replace text to confirm multimodality works
74
74
docs = Docs ()
75
75
assert await docs .aadd_texts (texts = [fig_1_text ], doc = doc )
76
- for query , substrings_min_counts in [
76
+ for query , substrings_min_counts in (
77
77
("What actions can the Crawler take?" , [(("search" , "expand" , "stop" ), 2 )]),
78
78
("What actions can the Selector take?" , [(("select" , "drop" ), 2 )]),
79
79
(
80
80
"How many User Query are there, and what do they do?" ,
81
81
[(("two" , "2" ), 2 ), (("crawler" , "selector" ), 2 )],
82
82
),
83
- ] :
83
+ ) :
84
84
session = await docs .aquery (query = query )
85
85
assert session .contexts , "Expected contexts to be generated"
86
86
assert all (
@@ -107,7 +107,7 @@ async def test_parse_pdf_to_pages() -> None:
107
107
assert page_text
108
108
assert full_page_image .index == 0 , "Full page image should have index 0"
109
109
assert isinstance (full_page_image .data , bytes )
110
- assert len ( full_page_image .data ) > 0 , "Full page image should have data"
110
+ assert full_page_image .data , "Full page image should have data"
111
111
# Check useful attributes are present and are JSON serializable
112
112
json .dumps (p2_image .info )
113
113
for attr in ("width" , "height" ):
0 commit comments