@@ -326,7 +326,7 @@ def test_partition_image_metadata_date(
326
326
):
327
327
mocked_last_modification_date = "2029-07-05T09:24:28"
328
328
mocker .patch (
329
- "unstructured.partition.pdf .get_last_modified_date" ,
329
+ "unstructured.partition.pdf_image.pdf_image_utils .get_last_modified_date" ,
330
330
return_value = mocked_last_modification_date ,
331
331
)
332
332
elements = image .partition_image (filename = filename )
@@ -340,7 +340,7 @@ def test_partition_image_with_hi_res_strategy_metadata_date(
340
340
):
341
341
mocked_last_modification_date = "2029-07-05T09:24:28"
342
342
mocker .patch (
343
- "unstructured.partition.pdf .get_last_modified_date" ,
343
+ "unstructured.partition.pdf_image.pdf_image_utils .get_last_modified_date" ,
344
344
return_value = mocked_last_modification_date ,
345
345
)
346
346
elements = image .partition_image (filename = filename , strategy = PartitionStrategy .HI_RES )
@@ -356,7 +356,7 @@ def test_partition_image_metadata_date_custom_metadata_date(
356
356
expected_last_modification_date = "2009-07-05T09:24:28"
357
357
358
358
mocker .patch (
359
- "unstructured.partition.pdf .get_last_modified_date" ,
359
+ "unstructured.partition.pdf_image.pdf_image_utils .get_last_modified_date" ,
360
360
return_value = mocked_last_modification_date ,
361
361
)
362
362
elements = image .partition_image (
@@ -375,7 +375,7 @@ def test_partition_image_with_hi_res_strategy_metadata_date_custom_metadata_date
375
375
expected_last_modification_date = "2009-07-05T09:24:28"
376
376
377
377
mocker .patch (
378
- "unstructured.partition.pdf .get_last_modified_date" ,
378
+ "unstructured.partition.pdf_image.pdf_image_utils .get_last_modified_date" ,
379
379
return_value = mocked_last_modification_date ,
380
380
)
381
381
elements = image .partition_image (
@@ -393,7 +393,7 @@ def test_partition_image_from_file_metadata_date(
393
393
):
394
394
mocked_last_modification_date = "2029-07-05T09:24:28"
395
395
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" ,
397
397
return_value = mocked_last_modification_date ,
398
398
)
399
399
with open (filename , "rb" ) as f :
@@ -408,7 +408,7 @@ def test_partition_image_from_file_explicit_get_metadata_date(
408
408
):
409
409
mocked_last_modification_date = "2029-07-05T09:24:28"
410
410
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" ,
412
412
return_value = mocked_last_modification_date ,
413
413
)
414
414
with open (filename , "rb" ) as f :
@@ -423,7 +423,7 @@ def test_partition_image_from_file_with_hi_res_strategy_metadata_date(
423
423
):
424
424
mocked_last_modification_date = "2029-07-05T09:24:28"
425
425
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" ,
427
427
return_value = mocked_last_modification_date ,
428
428
)
429
429
@@ -439,7 +439,7 @@ def test_partition_image_from_file_with_hi_res_strategy_explicit_get_metadata_da
439
439
):
440
440
mocked_last_modification_date = "2029-07-05T09:24:28"
441
441
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" ,
443
443
return_value = mocked_last_modification_date ,
444
444
)
445
445
@@ -459,7 +459,7 @@ def test_partition_image_from_file_metadata_date_custom_metadata_date(
459
459
expected_last_modification_date = "2009-07-05T09:24:28"
460
460
461
461
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" ,
463
463
return_value = mocked_last_modification_date ,
464
464
)
465
465
with open (filename , "rb" ) as f :
@@ -479,7 +479,7 @@ def test_partition_image_from_file_with_hi_res_strategy_metadata_date_custom_met
479
479
expected_last_modification_date = "2009-07-05T09:24:28"
480
480
481
481
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" ,
483
483
return_value = mocked_last_modification_date ,
484
484
)
485
485
with open (filename , "rb" ) as f :
0 commit comments