mirror of
https://github.com/ghndrx/prowler.git
synced 2026-02-10 06:45:08 +00:00
* feat(checks): Select checks to run * Update providers/aws/services/iam/iam_disable_30_days_credentials/iam_disable_30_days_credentials.py Co-authored-by: Sergio Garcia <38561120+sergargar@users.noreply.github.com>
15 lines
540 B
Python
15 lines
540 B
Python
import importlib
|
|
|
|
|
|
class Test_Check:
|
|
def test_import_check(self):
|
|
test_cases = [
|
|
{
|
|
"name": "Test valid check path",
|
|
"input": "providers.aws.services.iam.iam_disable_30_days_credentials.iam_disable_30_days_credentials",
|
|
"expected": "providers.aws.services.iam.iam_disable_30_days_credentials.iam_disable_30_days_credentials",
|
|
}
|
|
]
|
|
for test in test_cases:
|
|
assert importlib.import_module(test["input"]).__name__ == test["expected"]
|