def test_calculate_data_round_two_decimal_place_up(self): sentiment: list = [0.255, 0.506, 0.757] score, count = calculate_data(sentiment) assert score == 0.51 assert count == 3
def test_calculate_data_three_sentiments(self): sentiment: list = [0.25, 0.50, 0.75] score, count = calculate_data(sentiment) assert score == 0.50 assert count == 3
def test_calculate_data_round_two_decimal_place_down(self): sentiment: list = [0.253, 0.504, 0.755] score, count = calculate_data(sentiment) assert score == 0.50 assert count == 3
def test_calculate_data_one_sentiment(self): sentiment: list = [0.25] score, count = calculate_data(sentiment) assert score == 0.25 assert count == 1