mirror of
https://github.com/lightbroker/llmsecops-research.git
synced 2026-05-15 13:38:01 +02:00
16 lines
297 B
Python
16 lines
297 B
Python
import pytest
|
|
from src.text_generation.domain.average import Average
|
|
|
|
|
|
@pytest.mark.unit
|
|
def test_get_average():
|
|
scores = [
|
|
0.12765,
|
|
0.00282,
|
|
0.63945,
|
|
0.97123,
|
|
0.38921
|
|
]
|
|
avg_1 = Average().from_list_of_floats(scores)
|
|
assert avg_1 == 0.426072
|