From 46ace2c46c319111211f4d97741ba1ea1f1fae30 Mon Sep 17 00:00:00 2001 From: Igor Braginsky Date: Tue, 8 Oct 2024 17:45:12 +0300 Subject: [PATCH] Added test to list providers (#42) --- tests/test_common_options.py | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/tests/test_common_options.py b/tests/test_common_options.py index 0de0c85..cf5b338 100644 --- a/tests/test_common_options.py +++ b/tests/test_common_options.py @@ -46,3 +46,14 @@ def test_list_sources_duplicates(): sources = str.split(output, "\n") assert len(sources) == len(set(sources)) + + +# Polarion TC MTA-596 +def test_list_providers(): + kantra_path = os.getenv(constants.KANTRA_CLI_PATH) + command = kantra_path + ' analyze --list-providers' + + output = subprocess.run(command, shell=True, check=True, stdout=subprocess.PIPE, encoding='utf-8').stdout + + for i in ['java', 'python', 'go', 'dotnet', 'nodejs']: + assert i in output, f"Provider '{i}' not found in output."