Skip to content

Commit

Permalink
Fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
adamnolte committed Sep 27, 2024
1 parent d0c3322 commit b9bb4a9
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 0 deletions.
17 changes: 17 additions & 0 deletions tests/autoblocks/test_evaluators.py
Original file line number Diff line number Diff line change
Expand Up @@ -88,6 +88,7 @@ def test_has_all_substrings_evaluator(httpx_mock):
testCaseRevisionUsage=None,
testCaseHumanReviewInputFields=None,
testCaseHumanReviewOutputFields=None,
datasetItemId=None,
),
json=dict(id="mock-result-id-1"),
)
Expand Down Expand Up @@ -119,6 +120,7 @@ def test_has_all_substrings_evaluator(httpx_mock):
testCaseRevisionUsage=None,
testCaseHumanReviewInputFields=None,
testCaseHumanReviewOutputFields=None,
datasetItemId=None,
),
json=dict(id="mock-result-id-2"),
)
Expand Down Expand Up @@ -196,6 +198,7 @@ def test_is_equals_evaluator(httpx_mock):
testCaseRevisionUsage=None,
testCaseHumanReviewInputFields=None,
testCaseHumanReviewOutputFields=None,
datasetItemId=None,
),
json=dict(id="mock-result-id-1"),
)
Expand Down Expand Up @@ -227,6 +230,7 @@ def test_is_equals_evaluator(httpx_mock):
testCaseRevisionUsage=None,
testCaseHumanReviewInputFields=None,
testCaseHumanReviewOutputFields=None,
datasetItemId=None,
),
json=dict(id="mock-result-id-2"),
)
Expand Down Expand Up @@ -306,6 +310,7 @@ def test_is_valid_json_evaluator(httpx_mock):
testCaseRevisionUsage=None,
testCaseHumanReviewInputFields=None,
testCaseHumanReviewOutputFields=None,
datasetItemId=None,
),
json=dict(id="mock-result-id-1"),
)
Expand Down Expand Up @@ -337,6 +342,7 @@ def test_is_valid_json_evaluator(httpx_mock):
testCaseRevisionUsage=None,
testCaseHumanReviewInputFields=None,
testCaseHumanReviewOutputFields=None,
datasetItemId=None,
),
json=dict(id="mock-result-id-2"),
)
Expand Down Expand Up @@ -418,6 +424,7 @@ def hash(self) -> str:
testCaseRevisionUsage=None,
testCaseHumanReviewInputFields=None,
testCaseHumanReviewOutputFields=None,
datasetItemId=None,
),
json=dict(id="mock-result-id-1"),
)
Expand Down Expand Up @@ -452,6 +459,7 @@ def hash(self) -> str:
testCaseRevisionUsage=None,
testCaseHumanReviewInputFields=None,
testCaseHumanReviewOutputFields=None,
datasetItemId=None,
),
json=dict(id="mock-result-id-2"),
)
Expand Down Expand Up @@ -536,6 +544,7 @@ def hash(self) -> str:
testCaseRevisionUsage=None,
testCaseHumanReviewInputFields=None,
testCaseHumanReviewOutputFields=None,
datasetItemId=None,
),
json=dict(id="mock-result-id-1"),
)
Expand Down Expand Up @@ -570,6 +579,7 @@ def hash(self) -> str:
testCaseRevisionUsage=None,
testCaseHumanReviewInputFields=None,
testCaseHumanReviewOutputFields=None,
datasetItemId=None,
),
json=dict(id="mock-result-id-2"),
)
Expand Down Expand Up @@ -655,6 +665,7 @@ def hash(self) -> str:
testCaseRevisionUsage=None,
testCaseHumanReviewInputFields=None,
testCaseHumanReviewOutputFields=None,
datasetItemId=None,
),
json=dict(id="mock-result-id-1"),
)
Expand Down Expand Up @@ -689,6 +700,7 @@ def hash(self) -> str:
testCaseRevisionUsage=None,
testCaseHumanReviewInputFields=None,
testCaseHumanReviewOutputFields=None,
datasetItemId=None,
),
json=dict(id="mock-result-id-2"),
)
Expand Down Expand Up @@ -776,6 +788,7 @@ def hash(self) -> str:
testCaseRevisionUsage=None,
testCaseHumanReviewInputFields=None,
testCaseHumanReviewOutputFields=None,
datasetItemId=None,
),
json=dict(id="mock-result-id-1"),
)
Expand Down Expand Up @@ -810,6 +823,7 @@ def hash(self) -> str:
testCaseRevisionUsage=None,
testCaseHumanReviewInputFields=None,
testCaseHumanReviewOutputFields=None,
datasetItemId=None,
),
json=dict(id="mock-result-id-2"),
)
Expand Down Expand Up @@ -905,6 +919,7 @@ def test_manual_battle_evaluator(httpx_mock):
testCaseRevisionUsage=None,
testCaseHumanReviewInputFields=None,
testCaseHumanReviewOutputFields=None,
datasetItemId=None,
),
json=dict(id="mock-result-id-1"),
)
Expand Down Expand Up @@ -987,6 +1002,7 @@ def test_automatic_battle_evaluator(httpx_mock):
testCaseRevisionUsage=None,
testCaseHumanReviewInputFields=None,
testCaseHumanReviewOutputFields=None,
datasetItemId=None,
),
json=dict(id="mock-result-id-1"),
)
Expand Down Expand Up @@ -1078,6 +1094,7 @@ def test_assertions_evaluator(httpx_mock):
testCaseRevisionUsage=None,
testCaseHumanReviewInputFields=None,
testCaseHumanReviewOutputFields=None,
datasetItemId=None,
),
json=dict(id="mock-result-id-1"),
)
Expand Down
1 change: 1 addition & 0 deletions tests/autoblocks/test_ragas_evaluators.py
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,7 @@ def make_expected_requests(evaluator_id: str, httpx_mock: Any) -> None:
testCaseRevisionUsage=None,
testCaseHumanReviewInputFields=None,
testCaseHumanReviewOutputFields=None,
datasetItemId=None,
),
json=dict(id="mock-result-id-1"),
)
Expand Down

0 comments on commit b9bb4a9

Please sign in to comment.