From a36be258d873744b23a0186411efd9e0d7525e67 Mon Sep 17 00:00:00 2001 From: simone ragonesi <102741679+R3DRUN3@users.noreply.github.com> Date: Tue, 14 Nov 2023 12:11:55 +0100 Subject: [PATCH] chore: modify latest version msg (#3036) Signed-off-by: r3drun3 --- prowler/config/config.py | 4 +++- tests/config/config_test.py | 2 +- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/prowler/config/config.py b/prowler/config/config.py index f87f7055..73c8cad1 100644 --- a/prowler/config/config.py +++ b/prowler/config/config.py @@ -70,7 +70,9 @@ def check_current_version(): if latest_version != prowler_version: return f"{prowler_version_string} (latest is {latest_version}, upgrade for the latest features)" else: - return f"{prowler_version_string} (it is the latest version, yay!)" + return ( + f"{prowler_version_string} (You are running the latest version, yay!)" + ) except requests.RequestException: return f"{prowler_version_string}" except Exception: diff --git a/tests/config/config_test.py b/tests/config/config_test.py index ab116d35..7f2c0d56 100644 --- a/tests/config/config_test.py +++ b/tests/config/config_test.py @@ -63,7 +63,7 @@ class Test_Config: def test_check_current_version_with_latest(self): assert ( check_current_version() - == f"Prowler {MOCK_PROWLER_VERSION} (it is the latest version, yay!)" + == f"Prowler {MOCK_PROWLER_VERSION} (You are running the latest version, yay!)" ) @mock.patch(