diff options
Diffstat (limited to 'tests/unit/ansible_library')
-rw-r--r-- | tests/unit/ansible_library/plugins/action/calculate_test.py | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/tests/unit/ansible_library/plugins/action/calculate_test.py b/tests/unit/ansible_library/plugins/action/calculate_test.py index 3b34d9f5..68a03e2a 100644 --- a/tests/unit/ansible_library/plugins/action/calculate_test.py +++ b/tests/unit/ansible_library/plugins/action/calculate_test.py @@ -83,3 +83,10 @@ def test_calc_section(section_spec, metrics, section_result): def test_calc_qpi(qpi_spec, metrics, qpi_result): assert calculate.calc_qpi(qpi_spec, metrics) == qpi_result + + +@pytest.mark.parametrize('metrics, baseline, expected', [ + (['612376.96k'], '612376.96k', 1) +]) +def test_calc_score(metrics, baseline, expected): + assert calculate.calc_score(metrics, baseline) == expected |