Article Title
+Article content goes here.
+ {ignored_tag} +diff --git a/pyproject.toml b/pyproject.toml index 7bfc09d2..bc9c47cf 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -123,6 +123,7 @@ pytest-env = "^0.8.1" click = "^8.1.3" isort = "^5.12.0" pytest-cov = "^4.1.0" +responses = "^0.23.3" [tool.poetry.extras] streamlit = ["streamlit"] diff --git a/tests/loaders/test_docs_site_loader.py b/tests/loaders/test_docs_site_loader.py new file mode 100644 index 00000000..16b503b9 --- /dev/null +++ b/tests/loaders/test_docs_site_loader.py @@ -0,0 +1,218 @@ +import pytest +import responses +from bs4 import BeautifulSoup + + +@pytest.mark.parametrize( + "ignored_tag", + [ + "", + "", + "
", + "Article content goes here.
+ {ignored_tag} +Main article content goes here.
+ {ignored_tag} +Markdown content goes here.
+ {ignored_tag} +Main content goes here.
+ {ignored_tag} +Container content goes here.
+ {ignored_tag} +Section content goes here.
+ {ignored_tag} +Generic article content goes here.
+ {ignored_tag} +Main content goes here.
+ {ignored_tag} +