chore(release): update Prowler Version to 3.3.2 (#2150)

Co-authored-by: github-actions <noreply@github.com>
Co-authored-by: Pepe Fagoaga <pepe@verica.io>
This commit is contained in:
Sergio Garcia
2023-03-30 11:33:33 +02:00
committed by GitHub
parent 4cce91ec97
commit e37d8fe45f
4 changed files with 9 additions and 8 deletions

View File

@@ -1,6 +1,6 @@
from unittest import mock
from prowler.config.config import check_current_version, prowler_version
from prowler.config.config import check_current_version
from prowler.providers.aws.aws_provider import get_aws_available_regions
MOCK_PROWLER_VERSION = "3.3.0"
@@ -21,9 +21,10 @@ class Test_Config:
@mock.patch("prowler.config.config.prowler_version", new=MOCK_PROWLER_VERSION)
def test_check_current_version_with_latest(self):
assert (
check_current_version(prowler_version) == "(it is the latest version, yay!)"
check_current_version(MOCK_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)"
== f"(latest is {MOCK_PROWLER_VERSION}, upgrade for the latest features)"
)