Skip to content

Python tool for converting files and office documents to Markdown.

add test

Josh XT571c5bbc0eb2
diff --git a/tests/test_files/test_files.zip b/tests/test_files/test_files.zip
new file mode 100644
index 00000000..ef49dc0d
Binary files /dev/null and b/tests/test_files/test_files.zip differ
diff --git a/tests/test_markitdown.py b/tests/test_markitdown.py
index 94fd8862..1b69be51 100644
--- a/tests/test_markitdown.py
+++ b/tests/test_markitdown.py
@@ -144,6 +144,12 @@ def test_markitdown_local() -> None:
text_content = result.text_content.replace("\\", "")
assert test_string in text_content
+ # Test ZIP processing
+ result = markitdown.convert(os.path.join(TEST_FILES_DIR, "test_files.zip"))
+ for test_string in DOCX_TEST_STRINGS:
+ text_content = result.text_content.replace("\\", "")
+ assert test_string in text_content
+
# Test Wikipedia processing
result = markitdown.convert(
os.path.join(TEST_FILES_DIR, "test_wikipedia.html"), url=WIKIPEDIA_TEST_URL