Skip to content

Commit

Permalink
fix: pytest requires mark
Browse files Browse the repository at this point in the history
  • Loading branch information
CNSeniorious000 committed Dec 10, 2024
1 parent 9223b57 commit f565e03
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -6,15 +6,15 @@
from langchain_community.document_transformers import ReadabilityTransformer


@pytest.mark.requires("python-readability")
@pytest.mark.requires("readability")
def test_empty_html() -> None:
readability = ReadabilityTransformer()
documents = [Document(page_content="<html></html>")]
[document] = readability.transform_documents(documents)
assert document.page_content == "", document.page_content


@pytest.mark.requires("python-readability")
@pytest.mark.requires("readability")
def test_transform_non_empty_html() -> None:
readability = ReadabilityTransformer()
documents = [Document(page_content="<html><body><div>123</div></body></html>")]
Expand Down

0 comments on commit f565e03

Please sign in to comment.