<filename>presidio-anonymizer/tests/operators/test_redact.py<gh_stars>1000+
import pytest

from presidio_anonymizer.operators import Redact


@pytest.mark.parametrize(
    # fmt: off
    "params",
    [
        {"new_value": ""},
        {},
    ],
    # fmt: on
)
def test_given_value_for_redact_then_we_return_empty_value(params):
    text = Redact().operate("", params)
    assert text == ""


def test_when_validate_anonymizer_then_correct_name():
    assert Redact().operator_name() == "redact"

<filename>presidio-anonymizer/tests/operators/test_redact.py<gh_stars>1000+
import pytest

from presidio_anonymizer.operators import Redact


@pytest.mark.parametrize(
    # fmt: off
    "params",
    [
        {"new_value": ""},
        {},
    ],
    # fmt: on
)
def test_given_value_for_redact_then_we_return_empty_value(params):
    text = Redact().operate("", params)
    assert text == ""


def test_when_validate_anonymizer_then_correct_name():
    assert Redact().operator_name() == "redact"

# fmt: off # fmt: on