-
Notifications
You must be signed in to change notification settings - Fork 581
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1 changed file
with
3 additions
and
2 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 |
---|---|---|
|
@@ -550,13 +550,14 @@ def test_given_allow_list_without_setting_allow_list_match_then_normal_entity_is | |
|
||
@pytest.mark.api | ||
def test_given_regex_flags_and_normal_entities_are_returned(): | ||
# case sensitive flags are turned off, GitHub != github | ||
request_body = """ | ||
{ | ||
"text": "email: [email protected]", # case sensitive | ||
"text": "email: [email protected]", | ||
"language": "en", | ||
"allow_list": [".*@github.com"], | ||
"allow_list_match": "regex", | ||
"regex_flags": 0 # case insensitive flag is turned off | ||
"regex_flags": 0 | ||
} | ||
""" | ||
|
||
|