Skip to content

Commit

Permalink
Added test to list providers (#42)
Browse files Browse the repository at this point in the history
  • Loading branch information
ibragins authored Oct 8, 2024
1 parent 6542506 commit 46ace2c
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions tests/test_common_options.py
Original file line number Diff line number Diff line change
Expand Up @@ -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."

0 comments on commit 46ace2c

Please sign in to comment.