You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

11 lines
270 B
Python

import pytest
from marker.builders.structure import StructureBuilder
@pytest.mark.config({"page_range": [0]})
def test_structure_builder(pdf_document):
structure = StructureBuilder()
structure(pdf_document)
assert len(pdf_document.pages[0].structure) > 0