Skip to content

Commit

Permalink
Fixes test under Tika v3
Browse files Browse the repository at this point in the history
  • Loading branch information
stumpylog committed Oct 24, 2024
1 parent a5ee569 commit 1b2e996
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tests/test_resource_tika.py
Original file line number Diff line number Diff line change
Expand Up @@ -146,7 +146,7 @@ def test_html_document_from_string_buffer(self, tika_client: TikaClient, sample_
resp = tika_client.tika.as_text.from_buffer(buffer)

assert resp.type == "text/html; charset=UTF-8"
assert resp.parsers == ["org.apache.tika.parser.DefaultParser", "org.apache.tika.parser.html.HtmlParser"]
assert resp.parsers == ["org.apache.tika.parser.DefaultParser", "org.apache.tika.parser.html.JSoupParser"]
assert "Hello world! This is HTML5 content in a file for" in resp.data["X-TIKA:content"]
assert resp.data["dc:title"] == "This Is A Test"
assert resp.data["description"] == "A sample HTML file"
Expand Down

0 comments on commit 1b2e996

Please sign in to comment.