Skip to content

Commit

Permalink
test: Add and test extra value with one TRue option
Browse files Browse the repository at this point in the history
  • Loading branch information
Sarrabah committed Oct 30, 2024
1 parent 15e1ab5 commit 774d6e4
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions src/tests/test_validator_with_options.py
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,13 @@ def test_validator():
"valid_cases": [" Fly "],
"invalid_cases": ["fly "],
},
{
"options": Options(
ignore_case=True, extra_valid_values=frozenset({"Hello"})
),
"valid_cases": ["hello", "Réunion"],
"invalid_cases": ["Hello!!", " réunion"],
},
]

for tc in _test_cases:
Expand Down

0 comments on commit 774d6e4

Please sign in to comment.