test(iam_user_two_active_access_key_test): Create unit tests (#1354)

Co-authored-by: sergargar <sergio@verica.io>
This commit is contained in:
Pepe Fagoaga
2022-09-01 13:35:00 +02:00
committed by GitHub
parent f40c8f2dc5
commit 7388cb33d4
8 changed files with 257 additions and 69 deletions

View File

@@ -151,7 +151,11 @@ def recover_checks_from_provider(provider: str, service: str = None) -> list:
# Format: "providers.{provider}.services.{service}.{check_name}.{check_name}"
check_name = module_name.name
# We need to exclude common shared libraries in services
if check_name.count(".") == 5 and "lib" not in check_name:
if (
check_name.count(".") == 5
and "lib" not in check_name
and "test" not in check_name
):
checks.append(check_name)
return checks