File tree Expand file tree Collapse file tree 1 file changed +4
-1
lines changed Expand file tree Collapse file tree 1 file changed +4
-1
lines changed Original file line number Diff line number Diff line change @@ -4784,6 +4784,7 @@ def assert_pdf_text(
4784
4784
wrap=True,
4785
4785
nav=False,
4786
4786
override=False,
4787
+ caching=True,
4787
4788
):
4788
4789
"""Asserts text in a PDF file.
4789
4790
PDF can be either a URL or a file path on the local file system.
@@ -4806,7 +4807,8 @@ def assert_pdf_text(
4806
4807
(Not needed because the PDF will be downloaded anyway.)
4807
4808
override - If the PDF file to be downloaded already exists in the
4808
4809
downloaded_files/ folder, that PDF will be used
4809
- instead of downloading it again."""
4810
+ instead of downloading it again.
4811
+ caching - If resources should be cached via pdfminer."""
4810
4812
text = self.__fix_unicode_conversion(text)
4811
4813
if not codec:
4812
4814
codec = "utf-8"
@@ -4819,6 +4821,7 @@ def assert_pdf_text(
4819
4821
wrap=wrap,
4820
4822
nav=nav,
4821
4823
override=override,
4824
+ caching=caching,
4822
4825
)
4823
4826
if type(page) is int:
4824
4827
if text not in pdf_text:
You can’t perform that action at this time.
0 commit comments