Skip to content

Commit

Permalink
PPF-722: update test for dropdown
Browse files Browse the repository at this point in the history
  • Loading branch information
chinapandaman committed Sep 15, 2024
1 parent f577b93 commit a4e9ba2
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions tests/test_dropdown.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,12 +6,14 @@


def test_schema(sample_template_with_dropdown):
schema = PdfWrapper(sample_template_with_dropdown).schema
obj = PdfWrapper(sample_template_with_dropdown)

for key, value in schema["properties"].items():
for key, value in obj.schema["properties"].items():
if key == "dropdown_1":
assert value["maximum"] == 3

assert obj.sample_data["dropdown_1"] == 3


def test_dropdown_not_specified(sample_template_with_dropdown):
assert (
Expand Down

0 comments on commit a4e9ba2

Please sign in to comment.