We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
test_comprehend_scrub.py
1 parent 5fa12eb commit cec2a53Copy full SHA for cec2a53
tests/openadapt/privacy/providers/test_comprehend_scrub.py
@@ -1,10 +1,21 @@
1
"""Module to test ComprehendScrubbingProvider."""
2
3
+from botocore.exceptions import NoRegionError
4
+import pytest
5
6
from openadapt.privacy.providers.aws_comprehend import ComprehendScrubbingProvider
7
8
scrub = ComprehendScrubbingProvider()
9
10
+try:
11
+ scrub.scrub_text("hello Bob smith")
12
+except NoRegionError:
13
+ msg = (
14
+ "AWS Config Files not setup correctly. Please see "
15
+ "https://boto3.amazonaws.com/v1/documentation/api/latest/guide/quickstart.html#configuration" # noqa: E501
16
+ )
17
+ pytestmark = pytest.mark.skip(reason=msg)
18
+
19
20
def _hex_to_rgb(hex_color: int) -> tuple[int, int, int]:
21
"""Convert a hex color (int) to RGB.
0 commit comments