Skip to content

Commit

Permalink
remove extra test
Browse files Browse the repository at this point in the history
  • Loading branch information
Coniferish committed Oct 6, 2023
1 parent dd51858 commit 6ce99bf
Showing 1 changed file with 1 addition and 17 deletions.
18 changes: 1 addition & 17 deletions test_unstructured/partition/docx/test_docx.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
Title,
)
from unstructured.partition.doc import partition_doc
from unstructured.partition.docx import _DocxPartitioner, convert_and_partition_docx, partition_docx
from unstructured.partition.docx import _DocxPartitioner, partition_docx
from unstructured.partition.json import partition_json
from unstructured.partition.utils.constants import UNSTRUCTURED_INCLUDE_DEBUG_METADATA
from unstructured.staging.base import elements_to_json
Expand Down Expand Up @@ -544,19 +544,3 @@ def test_invalid_languages_arg_raises_TypeError():
with pytest.raises(TypeError):
filename = "example-docs/handbook-1p.docx"
partition_docx(filename=filename, languages="eng")


def test_convert_and_partition_docx():
filename = os.path.join("example-docs/fake.odt")
with open(filename, "rb") as f:
elements = convert_and_partition_docx(source_format="odt", file=f)
assert elements == [
Title("Lorem ipsum dolor sit amet."),
Table(
text="\nHeader row Mon Wed"
" Fri\nColor Blue"
" Red Green\nTime 1pm"
" 2pm 3pm\nLeader "
"Sarah Mark Ryan",
),
]

0 comments on commit 6ce99bf

Please sign in to comment.