@@ -121,7 +121,6 @@ def test_blob_image_blur_to_series(
121121 content_series = actual_exploded ["content" ]
122122 # Content should be blob objects for GCS destination
123123 assert hasattr (content_series , "blob" )
124- assert not content_series .blob .size ().isna ().any ()
125124
126125 else :
127126 expected_df = pd .DataFrame (
@@ -133,13 +132,14 @@ def test_blob_image_blur_to_series(
133132 }
134133 )
135134 pd .testing .assert_frame_equal (
136- actual .blob . to_frame ().to_pandas (),
135+ actual .struct . explode ().to_pandas (),
137136 expected_df ,
138137 check_dtype = False ,
139138 check_index_type = False ,
140139 )
141- # verify the files exist
142- assert not actual .blob .size ().isna ().any ()
140+
141+ # verify the files exist
142+ assert not actual .blob .size ().isna ().any ()
143143
144144
145145@pytest .mark .parametrize ("verbose" , [True , False ])
@@ -169,7 +169,6 @@ def test_blob_image_blur_to_folder(
169169 content_series = actual_exploded ["content" ]
170170 # Content should be blob objects for GCS destination
171171 assert hasattr (content_series , "blob" )
172- assert not content_series .blob .size ().isna ().any ()
173172
174173 else :
175174 expected_df = pd .DataFrame (
@@ -181,13 +180,14 @@ def test_blob_image_blur_to_folder(
181180 }
182181 )
183182 pd .testing .assert_frame_equal (
184- actual .blob . to_frame ().to_pandas (),
183+ actual .struct . explode ().to_pandas (),
185184 expected_df ,
186185 check_dtype = False ,
187186 check_index_type = False ,
188187 )
189- # verify the files exist
190- assert not actual .blob .size ().isna ().any ()
188+
189+ # verify the files exist
190+ assert not actual .blob .size ().isna ().any ()
191191
192192
193193@pytest .mark .parametrize ("verbose" , [True , False ])
@@ -249,7 +249,6 @@ def test_blob_image_resize_to_series(
249249 content_series = actual_exploded ["content" ]
250250 # Content should be blob objects for GCS destination
251251 assert hasattr (content_series , "blob" )
252- assert not content_series .blob .size ().isna ().any ()
253252
254253 else :
255254 expected_df = pd .DataFrame (
@@ -261,13 +260,14 @@ def test_blob_image_resize_to_series(
261260 }
262261 )
263262 pd .testing .assert_frame_equal (
264- actual .blob . to_frame ().to_pandas (),
263+ actual .struct . explode ().to_pandas (),
265264 expected_df ,
266265 check_dtype = False ,
267266 check_index_type = False ,
268267 )
269- # verify the files exist
270- assert not actual .blob .size ().isna ().any ()
268+
269+ # verify the files exist
270+ assert not actual .blob .size ().isna ().any ()
271271
272272
273273@pytest .mark .parametrize ("verbose" , [True , False ])
@@ -298,7 +298,6 @@ def test_blob_image_resize_to_folder(
298298 content_series = actual_exploded ["content" ]
299299 # Content should be blob objects for GCS destination
300300 assert hasattr (content_series , "blob" )
301- assert not content_series .blob .size ().isna ().any ()
302301
303302 else :
304303 expected_df = pd .DataFrame (
@@ -310,13 +309,14 @@ def test_blob_image_resize_to_folder(
310309 }
311310 )
312311 pd .testing .assert_frame_equal (
313- actual .blob . to_frame ().to_pandas (),
312+ actual .struct . explode ().to_pandas (),
314313 expected_df ,
315314 check_dtype = False ,
316315 check_index_type = False ,
317316 )
318- # verify the files exist
319- assert not actual .blob .size ().isna ().any ()
317+
318+ # verify the files exist
319+ assert not actual .blob .size ().isna ().any ()
320320
321321
322322@pytest .mark .parametrize ("verbose" , [True , False ])
@@ -369,6 +369,7 @@ def test_blob_image_normalize_to_series(
369369 )
370370
371371 if verbose :
372+
372373 assert hasattr (actual , "struct" )
373374 actual_exploded = actual .struct .explode ()
374375 assert "status" in actual_exploded .columns
@@ -380,7 +381,6 @@ def test_blob_image_normalize_to_series(
380381 content_series = actual_exploded ["content" ]
381382 # Content should be blob objects for GCS destination
382383 assert hasattr (content_series , "blob" )
383- assert not content_series .blob .size ().isna ().any ()
384384
385385 else :
386386 expected_df = pd .DataFrame (
@@ -392,7 +392,7 @@ def test_blob_image_normalize_to_series(
392392 }
393393 )
394394 pd .testing .assert_frame_equal (
395- actual .blob . to_frame ().to_pandas (),
395+ actual .struct . explode ().to_pandas (),
396396 expected_df ,
397397 check_dtype = False ,
398398 check_index_type = False ,
@@ -432,7 +432,6 @@ def test_blob_image_normalize_to_folder(
432432 content_series = actual_exploded ["content" ]
433433 # Content should be blob objects for GCS destination
434434 assert hasattr (content_series , "blob" )
435- assert not content_series .blob .size ().isna ().any ()
436435
437436 else :
438437 expected_df = pd .DataFrame (
@@ -444,14 +443,14 @@ def test_blob_image_normalize_to_folder(
444443 }
445444 )
446445 pd .testing .assert_frame_equal (
447- actual .blob . to_frame ().to_pandas (),
446+ actual .struct . explode ().to_pandas (),
448447 expected_df ,
449448 check_dtype = False ,
450449 check_index_type = False ,
451450 )
452451
453- # verify the files exist
454- assert not actual .blob .size ().isna ().any ()
452+ # verify the files exist
453+ assert not actual .blob .size ().isna ().any ()
455454
456455
457456@pytest .mark .parametrize ("verbose" , [True , False ])
0 commit comments