Skip to content

Commit 8ebe409

Browse files
committed
rename
1 parent 255dadf commit 8ebe409

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

nightfall/api.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -107,7 +107,7 @@ def scan_text(self, texts: List[str], detection_rules: Optional[List[DetectionRu
107107
return findings, parsed_response.get("redactedPayload")
108108

109109

110-
def scan_text_with_policies(self, texts: List[str], policy_uuids: List[str] = None) ->\
110+
def scan_text_with_policy_uuids(self, texts: List[str], policy_uuids: List[str] = None) ->\
111111
Tuple[List[List[Finding]], List[str]]:
112112
"""Scan text with Nightfall.
113113

tests/test_api.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -333,7 +333,7 @@ def test_scan_text():
333333
assert redactions[0] == "491👀-👀👀👀👀-👀👀👀👀-👀👀👀👀 is my credit card number, [REDACTED] ssn"
334334

335335
@responses.activate
336-
def test_scan_text_with_policies():
336+
def test_scan_text_with_policy_uuids():
337337
nightfall = Nightfall("NF-NOT_REAL")
338338
responses.add(responses.POST, 'https://api.nightfall.ai/v3/scan',
339339
json={
@@ -388,7 +388,7 @@ def test_scan_text_with_policies():
388388
"491👀-👀👀👀👀-👀👀👀👀-👀👀👀👀 is my credit card number, [REDACTED] ssn"
389389
]
390390
})
391-
result, redactions = nightfall.scan_text_with_policies(
391+
result, redactions = nightfall.scan_text_with_policy_uuids(
392392
["4916-6734-7572-5015 is my credit card number, 489-36-8350 ssn"],
393393
["2388f83f-cd31-4689-971b-4ee94f798281"]
394394
)

0 commit comments

Comments
 (0)