test(videoConverter): add video converter exiftool test
This commit is contained in:
parent
75aed53575
commit
aa4a073c24
2 changed files with 14 additions and 0 deletions
BIN
tests/test_files/test.mp4
vendored
Normal file
BIN
tests/test_files/test.mp4
vendored
Normal file
Binary file not shown.
|
|
@ -130,6 +130,12 @@ LLM_TEST_STRINGS = [
|
|||
"5bda1dd6",
|
||||
]
|
||||
|
||||
VIDEO_TEST_EXIFTOOL = {
|
||||
"Title": "Sample video test for MarkItDown",
|
||||
"Comment": "This is a sample video created using FFmpeg, with the voice-over generated by the Parler-TTS model.",
|
||||
"ImageSize": "1280x720",
|
||||
}
|
||||
|
||||
|
||||
# --- Helper Functions ---
|
||||
def validate_strings(result, expected_strings, exclude_strings=None):
|
||||
|
|
@ -246,6 +252,14 @@ def test_markitdown_exiftool() -> None:
|
|||
target = f"{key}: {JPG_TEST_EXIFTOOL[key]}"
|
||||
assert target in result.text_content
|
||||
|
||||
# Test Video metadata
|
||||
result = markitdown.convert(
|
||||
os.path.join(TEST_FILES_DIR, "test.mp4"), transcribe=False, llm_summary=False
|
||||
)
|
||||
for key in VIDEO_TEST_EXIFTOOL:
|
||||
target = f"{key}: {VIDEO_TEST_EXIFTOOL[key]}"
|
||||
assert target in result.text_content
|
||||
|
||||
|
||||
def test_markitdown_deprecation() -> None:
|
||||
try:
|
||||
|
|
|
|||
Loading…
Reference in a new issue