From 8699452ba835e08c8d97725118de2a6dc5e35891 Mon Sep 17 00:00:00 2001 From: Cody Maffucci <46459665+Maffooch@users.noreply.github.com> Date: Fri, 19 Sep 2025 12:05:47 -0600 Subject: [PATCH 1/2] Unit Tests: Ignore deprecation Warning from BlackDuck pypi package --- dojo/tools/api_blackduck/api_client.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/dojo/tools/api_blackduck/api_client.py b/dojo/tools/api_blackduck/api_client.py index ea4a7999f27..9b5e878f180 100644 --- a/dojo/tools/api_blackduck/api_client.py +++ b/dojo/tools/api_blackduck/api_client.py @@ -1,3 +1,8 @@ +import warnings + +# Ignore DeprecationWarning from the blackduck library because we cannot do anything about it +# until they fix it in their library +warnings.filterwarnings("ignore", category=DeprecationWarning) from blackduck import Client From 6f80b9be0f071f817ba16478adf105ba98668372 Mon Sep 17 00:00:00 2001 From: Cody Maffucci <46459665+Maffooch@users.noreply.github.com> Date: Fri, 19 Sep 2025 12:06:49 -0600 Subject: [PATCH 2/2] Accommodate ruff --- dojo/tools/api_blackduck/api_client.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dojo/tools/api_blackduck/api_client.py b/dojo/tools/api_blackduck/api_client.py index 9b5e878f180..f4bb050d539 100644 --- a/dojo/tools/api_blackduck/api_client.py +++ b/dojo/tools/api_blackduck/api_client.py @@ -3,7 +3,7 @@ # Ignore DeprecationWarning from the blackduck library because we cannot do anything about it # until they fix it in their library warnings.filterwarnings("ignore", category=DeprecationWarning) -from blackduck import Client +from blackduck import Client # noqa: E402 class BlackduckAPI: