@@ -326,7 +326,7 @@ def test_partition_image_metadata_date(
326326):
327327 mocked_last_modification_date = "2029-07-05T09:24:28"
328328 mocker .patch (
329- "unstructured.partition.pdf .get_last_modified_date" ,
329+ "unstructured.partition.pdf_image.pdf_image_utils .get_last_modified_date" ,
330330 return_value = mocked_last_modification_date ,
331331 )
332332 elements = image .partition_image (filename = filename )
@@ -340,7 +340,7 @@ def test_partition_image_with_hi_res_strategy_metadata_date(
340340):
341341 mocked_last_modification_date = "2029-07-05T09:24:28"
342342 mocker .patch (
343- "unstructured.partition.pdf .get_last_modified_date" ,
343+ "unstructured.partition.pdf_image.pdf_image_utils .get_last_modified_date" ,
344344 return_value = mocked_last_modification_date ,
345345 )
346346 elements = image .partition_image (filename = filename , strategy = PartitionStrategy .HI_RES )
@@ -356,7 +356,7 @@ def test_partition_image_metadata_date_custom_metadata_date(
356356 expected_last_modification_date = "2009-07-05T09:24:28"
357357
358358 mocker .patch (
359- "unstructured.partition.pdf .get_last_modified_date" ,
359+ "unstructured.partition.pdf_image.pdf_image_utils .get_last_modified_date" ,
360360 return_value = mocked_last_modification_date ,
361361 )
362362 elements = image .partition_image (
@@ -375,7 +375,7 @@ def test_partition_image_with_hi_res_strategy_metadata_date_custom_metadata_date
375375 expected_last_modification_date = "2009-07-05T09:24:28"
376376
377377 mocker .patch (
378- "unstructured.partition.pdf .get_last_modified_date" ,
378+ "unstructured.partition.pdf_image.pdf_image_utils .get_last_modified_date" ,
379379 return_value = mocked_last_modification_date ,
380380 )
381381 elements = image .partition_image (
@@ -393,7 +393,7 @@ def test_partition_image_from_file_metadata_date(
393393):
394394 mocked_last_modification_date = "2029-07-05T09:24:28"
395395 mocker .patch (
396- "unstructured.partition.pdf .get_last_modified_date_from_file" ,
396+ "unstructured.partition.pdf_image.pdf_image_utils .get_last_modified_date_from_file" ,
397397 return_value = mocked_last_modification_date ,
398398 )
399399 with open (filename , "rb" ) as f :
@@ -408,7 +408,7 @@ def test_partition_image_from_file_explicit_get_metadata_date(
408408):
409409 mocked_last_modification_date = "2029-07-05T09:24:28"
410410 mocker .patch (
411- "unstructured.partition.pdf .get_last_modified_date_from_file" ,
411+ "unstructured.partition.pdf_image.pdf_image_utils .get_last_modified_date_from_file" ,
412412 return_value = mocked_last_modification_date ,
413413 )
414414 with open (filename , "rb" ) as f :
@@ -423,7 +423,7 @@ def test_partition_image_from_file_with_hi_res_strategy_metadata_date(
423423):
424424 mocked_last_modification_date = "2029-07-05T09:24:28"
425425 mocker .patch (
426- "unstructured.partition.pdf .get_last_modified_date_from_file" ,
426+ "unstructured.partition.pdf_image.pdf_image_utils .get_last_modified_date_from_file" ,
427427 return_value = mocked_last_modification_date ,
428428 )
429429
@@ -439,7 +439,7 @@ def test_partition_image_from_file_with_hi_res_strategy_explicit_get_metadata_da
439439):
440440 mocked_last_modification_date = "2029-07-05T09:24:28"
441441 mocker .patch (
442- "unstructured.partition.pdf .get_last_modified_date_from_file" ,
442+ "unstructured.partition.pdf_image.pdf_image_utils .get_last_modified_date_from_file" ,
443443 return_value = mocked_last_modification_date ,
444444 )
445445
@@ -459,7 +459,7 @@ def test_partition_image_from_file_metadata_date_custom_metadata_date(
459459 expected_last_modification_date = "2009-07-05T09:24:28"
460460
461461 mocker .patch (
462- "unstructured.partition.pdf .get_last_modified_date_from_file" ,
462+ "unstructured.partition.pdf_image.pdf_image_utils .get_last_modified_date_from_file" ,
463463 return_value = mocked_last_modification_date ,
464464 )
465465 with open (filename , "rb" ) as f :
@@ -479,7 +479,7 @@ def test_partition_image_from_file_with_hi_res_strategy_metadata_date_custom_met
479479 expected_last_modification_date = "2009-07-05T09:24:28"
480480
481481 mocker .patch (
482- "unstructured.partition.pdf .get_last_modified_date_from_file" ,
482+ "unstructured.partition.pdf_image.pdf_image_utils .get_last_modified_date_from_file" ,
483483 return_value = mocked_last_modification_date ,
484484 )
485485 with open (filename , "rb" ) as f :
0 commit comments