Files
prowler/lib/check_test.py
Pepe Fagoaga 162852634e feat(checks): Select checks to run from provider using -c/--checks (#1197)
* 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>
2022-06-16 12:20:03 +02:00

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"]