support testing malicious prompts with no guidelines

This commit is contained in:
Adam Wilson
2025-06-28 12:18:35 -06:00
parent 036d36bf4f
commit cb1be6746f
18 changed files with 447 additions and 76 deletions
+15
View File
@@ -0,0 +1,15 @@
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