import pytest
from api.modelServing import calculate_score

def test_calculate_score():
    '''
    Testing method of 'calculate_score', the result should be 0<=result<=10
    '''

    input_processed_array = [1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1]
    assert calculate_score(input_processed_array) > 0
    assert calculate_score(input_processed_array) < 10 