-
Notifications
You must be signed in to change notification settings - Fork 19
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #253 from chinapandaman/PPF-252
PPF-252: scenario test - PDFescape
- Loading branch information
Showing
9 changed files
with
39 additions
and
7 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -7,4 +7,4 @@ | |
PyPDFForm = Wrapper | ||
PyPDFForm2 = WrapperV2 | ||
|
||
__version__ = "1.0.1" | ||
__version__ = "1.0.2" |
File renamed without changes.
File renamed without changes.
File renamed without changes.
Binary file not shown.
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
# -*- coding: utf-8 -*- | ||
|
||
import os | ||
|
||
from PyPDFForm import PyPDFForm2 | ||
|
||
|
||
def test_filling_pdf_escape_pdf_form(tool_pdf_directory): | ||
with open(os.path.join(tool_pdf_directory, "pdf_escape_expected.pdf"), "rb+") as f: | ||
assert PyPDFForm2( | ||
os.path.join(tool_pdf_directory, "pdf_escape.pdf") | ||
).fill( | ||
{ | ||
"test_1": "test_1", | ||
"test_2": "test_2", | ||
"test_3": "test_3", | ||
"check_1": True, | ||
"check_2": True, | ||
"check_3": True, | ||
"radio_1": 2, | ||
} | ||
).read() == f.read() |