Skip to content

Commit

Permalink
Add a test
Browse files Browse the repository at this point in the history
  • Loading branch information
Hiromu Hota committed Oct 22, 2020
1 parent 37eead8 commit 2c91583
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions tests/test_figures.py
Original file line number Diff line number Diff line change
@@ -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

0 comments on commit 2c91583

Please sign in to comment.