Fix case-insensitive header redaction by astuyve · Pull Request #685 · DataDog/datadog-lambda-python
Successfully installed black-22.3.0 click-8.1.8 mypy-extensions-1.1.0 pathspec-0.12.1 platformdirs-4.4.0 tomli-2.3.0 typing-extensions-4.15.0
All done! ✨ 🍰 ✨
24 files would be left unchanged.
--- tests/test_tag_object.py 2025-11-25 19:06:13.372962 +0000
+++ tests/test_tag_object.py 2025-11-25 19:06:35.231549 +0000
@@ -111,13 +111,11 @@
"Authorization": "secret",
"headers": {"X-AUTHORIZATION": "another"},
}
spanMock = MagicMock()
tag_object(spanMock, "function.request", payload)
- spanMock.set_tag.assert_any_call(
- "function.request.Authorization", "redacted"
- )
+ spanMock.set_tag.assert_any_call("function.request.Authorization", "redacted")
spanMock.set_tag.assert_any_call(
"function.request.headers.X-AUTHORIZATION", "redacted"
)
def test_json_tag_object(self):
would reformat tests/test_tag_object.py