From 4e0a10ecf34047e9e40751fff323a0ffbd88884d Mon Sep 17 00:00:00 2001 From: Kenny Zhang Date: Thu, 27 Feb 2025 16:44:50 -0500 Subject: [PATCH] ran unit tests locally --- packages/markitdown/src/markitdown/_markitdown.py | 2 +- packages/markitdown/tests/test_markitdown.py | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/packages/markitdown/src/markitdown/_markitdown.py b/packages/markitdown/src/markitdown/_markitdown.py index 90fdc14..7616493 100644 --- a/packages/markitdown/src/markitdown/_markitdown.py +++ b/packages/markitdown/src/markitdown/_markitdown.py @@ -228,7 +228,7 @@ class MarkItDown: def convert_file_object( self, file_object: Union[BufferedIOBase, TextIOBase], **kwargs: Any ) -> DocumentConverterResult: # TODO: deal with kwargs - # Prepare a list of extensions to try (in order of priority) + # Prepare a list of extensions to try (in order of priority ext = kwargs.get("file_extension") extensions = [ext] if ext is not None else [] diff --git a/packages/markitdown/tests/test_markitdown.py b/packages/markitdown/tests/test_markitdown.py index d04623b..1626c58 100644 --- a/packages/markitdown/tests/test_markitdown.py +++ b/packages/markitdown/tests/test_markitdown.py @@ -410,6 +410,7 @@ if __name__ == "__main__": """Runs this file's tests from the command line.""" test_markitdown_remote() test_markitdown_local_paths() + test_markitdown_local_objects() test_markitdown_exiftool() # test_markitdown_llm() print("All tests passed!")