chore(version): check latest version (#2106)

This commit is contained in:
Sergio Garcia
2023-03-21 11:16:13 +01:00
committed by GitHub
parent 51eacbfac5
commit 706d723703
3 changed files with 26 additions and 1 deletions

View File

@@ -1,6 +1,16 @@
from prowler.config.config import check_current_version, prowler_version
from prowler.providers.aws.aws_provider import get_aws_available_regions
class Test_Config:
def test_get_aws_available_regions(self):
assert len(get_aws_available_regions()) == 31
def test_check_current_version(self):
assert (
check_current_version(prowler_version) == "(it is the latest version, yay!)"
)
assert (
check_current_version("0.0.0")
== f"(latest is {prowler_version}, upgrade for the latest features)"
)