@@ -120,7 +120,6 @@ def test_blob_image_blur_to_series(
120120 content_series = actual_exploded ["content" ]
121121 # Content should be blob objects for GCS destination
122122 assert hasattr (content_series , "blob" )
123- assert not content_series .blob .size ().isna ().any ()
124123
125124 else :
126125 expected_df = pd .DataFrame (
@@ -132,13 +131,14 @@ def test_blob_image_blur_to_series(
132131 }
133132 )
134133 pd .testing .assert_frame_equal (
135- actual .blob . to_frame ().to_pandas (),
134+ actual .struct . explode ().to_pandas (),
136135 expected_df ,
137136 check_dtype = False ,
138137 check_index_type = False ,
139138 )
140- # verify the files exist
141- assert not actual .blob .size ().isna ().any ()
139+
140+ # verify the files exist
141+ assert not actual .blob .size ().isna ().any ()
142142
143143
144144@pytest .mark .parametrize ("verbose" , [True , False ])
@@ -168,7 +168,6 @@ def test_blob_image_blur_to_folder(
168168 content_series = actual_exploded ["content" ]
169169 # Content should be blob objects for GCS destination
170170 assert hasattr (content_series , "blob" )
171- assert not content_series .blob .size ().isna ().any ()
172171
173172 else :
174173 expected_df = pd .DataFrame (
@@ -180,13 +179,14 @@ def test_blob_image_blur_to_folder(
180179 }
181180 )
182181 pd .testing .assert_frame_equal (
183- actual .blob . to_frame ().to_pandas (),
182+ actual .struct . explode ().to_pandas (),
184183 expected_df ,
185184 check_dtype = False ,
186185 check_index_type = False ,
187186 )
188- # verify the files exist
189- assert not actual .blob .size ().isna ().any ()
187+
188+ # verify the files exist
189+ assert not actual .blob .size ().isna ().any ()
190190
191191
192192@pytest .mark .parametrize ("verbose" , [True , False ])
@@ -248,7 +248,6 @@ def test_blob_image_resize_to_series(
248248 content_series = actual_exploded ["content" ]
249249 # Content should be blob objects for GCS destination
250250 assert hasattr (content_series , "blob" )
251- assert not content_series .blob .size ().isna ().any ()
252251
253252 else :
254253 expected_df = pd .DataFrame (
@@ -260,13 +259,14 @@ def test_blob_image_resize_to_series(
260259 }
261260 )
262261 pd .testing .assert_frame_equal (
263- actual .blob . to_frame ().to_pandas (),
262+ actual .struct . explode ().to_pandas (),
264263 expected_df ,
265264 check_dtype = False ,
266265 check_index_type = False ,
267266 )
268- # verify the files exist
269- assert not actual .blob .size ().isna ().any ()
267+
268+ # verify the files exist
269+ assert not actual .blob .size ().isna ().any ()
270270
271271
272272@pytest .mark .parametrize ("verbose" , [True , False ])
@@ -297,7 +297,6 @@ def test_blob_image_resize_to_folder(
297297 content_series = actual_exploded ["content" ]
298298 # Content should be blob objects for GCS destination
299299 assert hasattr (content_series , "blob" )
300- assert not content_series .blob .size ().isna ().any ()
301300
302301 else :
303302 expected_df = pd .DataFrame (
@@ -309,13 +308,14 @@ def test_blob_image_resize_to_folder(
309308 }
310309 )
311310 pd .testing .assert_frame_equal (
312- actual .blob . to_frame ().to_pandas (),
311+ actual .struct . explode ().to_pandas (),
313312 expected_df ,
314313 check_dtype = False ,
315314 check_index_type = False ,
316315 )
317- # verify the files exist
318- assert not actual .blob .size ().isna ().any ()
316+
317+ # verify the files exist
318+ assert not actual .blob .size ().isna ().any ()
319319
320320
321321@pytest .mark .parametrize ("verbose" , [True , False ])
@@ -368,6 +368,7 @@ def test_blob_image_normalize_to_series(
368368 )
369369
370370 if verbose :
371+
371372 assert hasattr (actual , "struct" )
372373 actual_exploded = actual .struct .explode ()
373374 assert "status" in actual_exploded .columns
@@ -379,7 +380,6 @@ def test_blob_image_normalize_to_series(
379380 content_series = actual_exploded ["content" ]
380381 # Content should be blob objects for GCS destination
381382 assert hasattr (content_series , "blob" )
382- assert not content_series .blob .size ().isna ().any ()
383383
384384 else :
385385 expected_df = pd .DataFrame (
@@ -391,7 +391,7 @@ def test_blob_image_normalize_to_series(
391391 }
392392 )
393393 pd .testing .assert_frame_equal (
394- actual .blob . to_frame ().to_pandas (),
394+ actual .struct . explode ().to_pandas (),
395395 expected_df ,
396396 check_dtype = False ,
397397 check_index_type = False ,
@@ -431,7 +431,6 @@ def test_blob_image_normalize_to_folder(
431431 content_series = actual_exploded ["content" ]
432432 # Content should be blob objects for GCS destination
433433 assert hasattr (content_series , "blob" )
434- assert not content_series .blob .size ().isna ().any ()
435434
436435 else :
437436 expected_df = pd .DataFrame (
@@ -443,14 +442,14 @@ def test_blob_image_normalize_to_folder(
443442 }
444443 )
445444 pd .testing .assert_frame_equal (
446- actual .blob . to_frame ().to_pandas (),
445+ actual .struct . explode ().to_pandas (),
447446 expected_df ,
448447 check_dtype = False ,
449448 check_index_type = False ,
450449 )
451450
452- # verify the files exist
453- assert not actual .blob .size ().isna ().any ()
451+ # verify the files exist
452+ assert not actual .blob .size ().isna ().any ()
454453
455454
456455@pytest .mark .parametrize ("verbose" , [True , False ])
0 commit comments