Skip to content

Commit

Permalink
Fix test
Browse files Browse the repository at this point in the history
  • Loading branch information
jstray committed Aug 25, 2024
1 parent 747e5b9 commit 390b946
Showing 1 changed file with 6 additions and 8 deletions.
14 changes: 6 additions & 8 deletions perspective_ranker_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -127,11 +127,9 @@ def test_arm_sort():

result = rank.arm_sort(perspective_ranker.perspective_toxicity, scored_statements)

assert result == {
"ranked_ids": [
"test_statement_id_1",
"test_statement_id_unscorable",
"test_statement_id_2",
"test_statement_id_3",
]
}
assert result["ranked_ids"] == [
"test_statement_id_1",
"test_statement_id_unscorable",
"test_statement_id_2",
"test_statement_id_3",
]

0 comments on commit 390b946

Please sign in to comment.