From cbdda22a33568d3490e2876e8966e8ee31d924ba Mon Sep 17 00:00:00 2001 From: Nacho Rivera <59198746+n4ch04@users.noreply.github.com> Date: Thu, 12 Jan 2023 15:43:54 +0100 Subject: [PATCH] fix: deleted test exclusion in name loading checks (#1694) --- prowler/lib/check/check.py | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/prowler/lib/check/check.py b/prowler/lib/check/check.py index bfd333fa..a262d7a6 100644 --- a/prowler/lib/check/check.py +++ b/prowler/lib/check/check.py @@ -233,11 +233,7 @@ def recover_checks_from_provider(provider: str, service: str = None) -> list[tup # Format: "prowler.providers.{provider}.services.{service}.{check_name}.{check_name}" check_module_name = module_name.name # We need to exclude common shared libraries in services - if ( - check_module_name.count(".") == 6 - and "lib" not in check_module_name - and "test" not in check_module_name - ): + if check_module_name.count(".") == 6 and "lib" not in check_module_name: check_path = module_name.module_finder.path # Check name is the last part of the check_module_name check_name = check_module_name.split(".")[-1]