PyPDFForm 1.4.33__tar.gz → 1.4.34__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {pypdfform-1.4.33 → pypdfform-1.4.34}/PKG-INFO +1 -1
- {pypdfform-1.4.33 → pypdfform-1.4.34}/PyPDFForm/__init__.py +1 -1
- {pypdfform-1.4.33 → pypdfform-1.4.34}/PyPDFForm/middleware/dropdown.py +1 -1
- {pypdfform-1.4.33 → pypdfform-1.4.34}/PyPDFForm/middleware/radio.py +1 -1
- {pypdfform-1.4.33 → pypdfform-1.4.34}/PyPDFForm/middleware/text.py +3 -1
- {pypdfform-1.4.33 → pypdfform-1.4.34}/PyPDFForm.egg-info/PKG-INFO +1 -1
- {pypdfform-1.4.33 → pypdfform-1.4.34}/tests/test_dropdown.py +4 -2
- {pypdfform-1.4.33 → pypdfform-1.4.34}/tests/test_functional.py +11 -0
- {pypdfform-1.4.33 → pypdfform-1.4.34}/LICENSE +0 -0
- {pypdfform-1.4.33 → pypdfform-1.4.34}/PyPDFForm/adapter.py +0 -0
- {pypdfform-1.4.33 → pypdfform-1.4.34}/PyPDFForm/constants.py +0 -0
- {pypdfform-1.4.33 → pypdfform-1.4.34}/PyPDFForm/coordinate.py +0 -0
- {pypdfform-1.4.33 → pypdfform-1.4.34}/PyPDFForm/filler.py +0 -0
- {pypdfform-1.4.33 → pypdfform-1.4.34}/PyPDFForm/font.py +0 -0
- {pypdfform-1.4.33 → pypdfform-1.4.34}/PyPDFForm/image.py +0 -0
- {pypdfform-1.4.33 → pypdfform-1.4.34}/PyPDFForm/middleware/__init__.py +0 -0
- {pypdfform-1.4.33 → pypdfform-1.4.34}/PyPDFForm/middleware/base.py +0 -0
- {pypdfform-1.4.33 → pypdfform-1.4.34}/PyPDFForm/middleware/checkbox.py +0 -0
- {pypdfform-1.4.33 → pypdfform-1.4.34}/PyPDFForm/middleware/image.py +0 -0
- {pypdfform-1.4.33 → pypdfform-1.4.34}/PyPDFForm/middleware/signature.py +0 -0
- {pypdfform-1.4.33 → pypdfform-1.4.34}/PyPDFForm/patterns.py +0 -0
- {pypdfform-1.4.33 → pypdfform-1.4.34}/PyPDFForm/template.py +0 -0
- {pypdfform-1.4.33 → pypdfform-1.4.34}/PyPDFForm/utils.py +0 -0
- {pypdfform-1.4.33 → pypdfform-1.4.34}/PyPDFForm/watermark.py +0 -0
- {pypdfform-1.4.33 → pypdfform-1.4.34}/PyPDFForm/widgets/__init__.py +0 -0
- {pypdfform-1.4.33 → pypdfform-1.4.34}/PyPDFForm/widgets/base.py +0 -0
- {pypdfform-1.4.33 → pypdfform-1.4.34}/PyPDFForm/widgets/checkbox.py +0 -0
- {pypdfform-1.4.33 → pypdfform-1.4.34}/PyPDFForm/widgets/dropdown.py +0 -0
- {pypdfform-1.4.33 → pypdfform-1.4.34}/PyPDFForm/widgets/text.py +0 -0
- {pypdfform-1.4.33 → pypdfform-1.4.34}/PyPDFForm/wrapper.py +0 -0
- {pypdfform-1.4.33 → pypdfform-1.4.34}/PyPDFForm.egg-info/SOURCES.txt +0 -0
- {pypdfform-1.4.33 → pypdfform-1.4.34}/PyPDFForm.egg-info/dependency_links.txt +0 -0
- {pypdfform-1.4.33 → pypdfform-1.4.34}/PyPDFForm.egg-info/requires.txt +0 -0
- {pypdfform-1.4.33 → pypdfform-1.4.34}/PyPDFForm.egg-info/top_level.txt +0 -0
- {pypdfform-1.4.33 → pypdfform-1.4.34}/README.md +0 -0
- {pypdfform-1.4.33 → pypdfform-1.4.34}/setup.cfg +0 -0
- {pypdfform-1.4.33 → pypdfform-1.4.34}/setup.py +0 -0
- {pypdfform-1.4.33 → pypdfform-1.4.34}/tests/test_adobe_mode.py +0 -0
- {pypdfform-1.4.33 → pypdfform-1.4.34}/tests/test_create_widget.py +0 -0
- {pypdfform-1.4.33 → pypdfform-1.4.34}/tests/test_dropdown_simple.py +0 -0
- {pypdfform-1.4.33 → pypdfform-1.4.34}/tests/test_fill_max_length_text_field.py +0 -0
- {pypdfform-1.4.33 → pypdfform-1.4.34}/tests/test_fill_max_length_text_field_simple.py +0 -0
- {pypdfform-1.4.33 → pypdfform-1.4.34}/tests/test_functional_simple.py +0 -0
- {pypdfform-1.4.33 → pypdfform-1.4.34}/tests/test_paragraph.py +0 -0
- {pypdfform-1.4.33 → pypdfform-1.4.34}/tests/test_paragraph_simple.py +0 -0
- {pypdfform-1.4.33 → pypdfform-1.4.34}/tests/test_preview.py +0 -0
- {pypdfform-1.4.33 → pypdfform-1.4.34}/tests/test_signature.py +0 -0
|
@@ -6,12 +6,14 @@ from PyPDFForm import PdfWrapper
|
|
|
6
6
|
|
|
7
7
|
|
|
8
8
|
def test_schema(sample_template_with_dropdown):
|
|
9
|
-
|
|
9
|
+
obj = PdfWrapper(sample_template_with_dropdown)
|
|
10
10
|
|
|
11
|
-
for key, value in schema["properties"].items():
|
|
11
|
+
for key, value in obj.schema["properties"].items():
|
|
12
12
|
if key == "dropdown_1":
|
|
13
13
|
assert value["maximum"] == 3
|
|
14
14
|
|
|
15
|
+
assert obj.sample_data["dropdown_1"] == 3
|
|
16
|
+
|
|
15
17
|
|
|
16
18
|
def test_dropdown_not_specified(sample_template_with_dropdown):
|
|
17
19
|
assert (
|
|
@@ -406,6 +406,17 @@ def test_sample_data(sejda_template_complex):
|
|
|
406
406
|
pass
|
|
407
407
|
|
|
408
408
|
|
|
409
|
+
def test_sample_data_max_boundary(sample_template_with_comb_text_field):
|
|
410
|
+
obj = PdfWrapper(sample_template_with_comb_text_field)
|
|
411
|
+
try:
|
|
412
|
+
validate(instance=obj.sample_data, schema=obj.schema)
|
|
413
|
+
except ValidationError:
|
|
414
|
+
raise AssertionError from ValidationError
|
|
415
|
+
|
|
416
|
+
assert obj.sample_data["LastName"] == "LastNam"
|
|
417
|
+
assert obj.sample_data["Gender"] == 1
|
|
418
|
+
|
|
419
|
+
|
|
409
420
|
def test_fill_right_aligned(
|
|
410
421
|
sample_template_with_right_aligned_text_field, pdf_samples, request
|
|
411
422
|
):
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|