Skip to content

Commit

Permalink
Update test_regex_pattern_string_parameter_builder.py
Browse files Browse the repository at this point in the history
  • Loading branch information
Shinnnyshinshin committed Feb 19, 2022
1 parent 2bec72b commit 6ba7efc
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -130,7 +130,7 @@ def test_regex_pattern_string_parameter_builder_bobby_multiple_matches(
metric_domain_kwargs: dict = {"column": "VendorID"}
candidate_regexes: List[str] = [
r"^\d{1}$", # will match
r"^[0-9]{1}$", # will match
r"^[12]{1}$", # will match 0.9941111111 of the time
r"^\d{4}$", # won't match
]
threshold: float = 0.9
Expand Down Expand Up @@ -171,11 +171,11 @@ def test_regex_pattern_string_parameter_builder_bobby_multiple_matches(
"$parameter.my_regex_pattern_string_parameter_builder"
)
expected_value: dict = {
"value": [r"^[0-9]{1}$", r"^\d{1}$"],
"value": [r"^[12]{1}$", r"^\d{1}$"],
"details": {
"evaluated_regexes": {
r"^\d{1}$": 1.0,
r"^[0-9]{1}$": 1.0,
r"^[12]{1}$": 0.9941111111111111,
r"^\d{4}$": 0,
},
"threshold": 0.9,
Expand Down

0 comments on commit 6ba7efc

Please sign in to comment.