ran unit tests locally
This commit is contained in:
@@ -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 []
|
||||
|
||||
|
||||
@@ -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!")
|
||||
|
||||
Reference in New Issue
Block a user