auto-swe-agent-ui / docstream /tests /test_extractor.py
DevilBits's picture
fix: enforce safe empty bounds for tracking data charts and match dataframe list alignments
6085b61
raw
history blame contribute delete
393 Bytes
import pytest
from docstream.core.extractor import PDFExtractor
pytest.mark.parametrize(
"password, expected_error",
[
(None, "PDF is password protected. Pass password= to extract()"),
],
)
def test_password_protected_pdf(password, expected_error):
with pytest.raises(ExtractionError, match=expected_error):
PDFExtractor("protected.pdf", password=password)