mirror of
https://github.com/ghndrx/prowler.git
synced 2026-02-10 06:45:08 +00:00
chore(version): check latest version (#2106)
This commit is contained in:
@@ -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)"
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user