style: black files
This commit is contained in:
parent
238ff216dc
commit
6f673703e8
2 changed files with 5 additions and 9 deletions
|
|
@ -757,9 +757,8 @@ class DocxConverter(HtmlConverter):
|
||||||
)
|
)
|
||||||
)
|
)
|
||||||
self._xsl_folder = os.path.join(
|
self._xsl_folder = os.path.join(
|
||||||
os.path.dirname(
|
os.path.dirname(os.path.dirname(os.path.abspath(__file__))),
|
||||||
os.path.dirname(os.path.abspath(__file__))),
|
"xsl",
|
||||||
'xsl',
|
|
||||||
)
|
)
|
||||||
self._mml_to_tex_xsl = os.path.join(self._xsl_folder, "mmltex.xsl")
|
self._mml_to_tex_xsl = os.path.join(self._xsl_folder, "mmltex.xsl")
|
||||||
self._omml_to_mml_xsl = os.path.join(self._xsl_folder, "omml2mml.xsl")
|
self._omml_to_mml_xsl = os.path.join(self._xsl_folder, "omml2mml.xsl")
|
||||||
|
|
|
||||||
|
|
@ -272,10 +272,6 @@ def test_markitdown_local() -> None:
|
||||||
assert "# Test" in result.text_content
|
assert "# Test" in result.text_content
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
@pytest.mark.skipif(
|
@pytest.mark.skipif(
|
||||||
skip_exiftool,
|
skip_exiftool,
|
||||||
reason="do not run if exiftool is not installed",
|
reason="do not run if exiftool is not installed",
|
||||||
|
|
@ -362,10 +358,11 @@ def test_markitdown_llm() -> None:
|
||||||
for test_string in ["red", "circle", "blue", "square"]:
|
for test_string in ["red", "circle", "blue", "square"]:
|
||||||
assert test_string in result.text_content.lower()
|
assert test_string in result.text_content.lower()
|
||||||
|
|
||||||
|
|
||||||
def test_equation() -> None:
|
def test_equation() -> None:
|
||||||
expected_string = r'${\left(x+a\right)}^{n}={\sum }\_{k=0}^{n}\left(\begin{array}{c}n\\ k\end{array}\right){x}^{k}{a}^{n-k}$'
|
expected_string = r"${\left(x+a\right)}^{n}={\sum }\_{k=0}^{n}\left(\begin{array}{c}n\\ k\end{array}\right){x}^{k}{a}^{n-k}$"
|
||||||
markitdown = MarkItDown()
|
markitdown = MarkItDown()
|
||||||
result = markitdown.convert( os.path.join(TEST_FILES_DIR, "equation.docx"))
|
result = markitdown.convert(os.path.join(TEST_FILES_DIR, "equation.docx"))
|
||||||
assert expected_string == result.text_content.strip()
|
assert expected_string == result.text_content.strip()
|
||||||
|
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue