diff --git a/tests/test_figures.py b/tests/test_figures.py new file mode 100644 index 0000000..f1baf6b --- /dev/null +++ b/tests/test_figures.py @@ -0,0 +1,11 @@ +"""Test figures.""" +from bs4 import BeautifulSoup + +import pdftotree + + +def test_figures(): + output = pdftotree.parse("tests/input/md.pdf") + soup = BeautifulSoup(output, "lxml") + imgs = soup.find_all("img") + assert len(imgs) == 1