hotpdf/tests/conftest.py

58 lines
1.1 KiB
Python

import pytest
@pytest.fixture()
def valid_file_name():
return "tests/resources/PDF.pdf"
@pytest.fixture()
def blank_file_name():
return "tests/resources/blank.pdf"
@pytest.fixture()
def multiple_pages_file_name():
return "tests/resources/20pages.pdf"
@pytest.fixture()
def non_existent_file_name():
return "non_existent_file.pdf"
@pytest.fixture()
def locked_file_name():
return "tests/resources/PDF_locked.pdf"
@pytest.fixture()
def invalid_file_name():
return "tests/resources/invalid_file.txt"
@pytest.fixture()
def bible_file_name():
return "tests/resources/bible.pdf"
@pytest.fixture()
def mock_hotpdf_bank_file_name():
return "tests/resources/hotpdf_bank.pdf"
@pytest.fixture()
def duplicate_span_file_name():
return "tests/resources/dup_span.pdf"
@pytest.fixture
def document_lt_figure_file_name():
# File sourced from: https://github.com/druskacik/ltfigure-pdfminer
return "tests/resources/doc_lt_figure.pdf"
@pytest.fixture()
def variations_simple_file_name():
return "tests/resources/test_variations_simple.pdf"