Skip to content

Commit

Permalink
test fix
Browse files Browse the repository at this point in the history
  • Loading branch information
bboynton97 committed Jun 26, 2024
1 parent 94a5866 commit 9120b79
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions tests/test_record_function.py
Original file line number Diff line number Diff line change
Expand Up @@ -192,8 +192,8 @@ async def async_add(x, y):
assert mock_req.last_request.headers["X-Agentops-Api-Key"] == self.api_key
assert mock_req.last_request.headers["Authorization"] == f"Bearer some_jwt2"
assert request_json["events"][0]["action_type"] == self.event_type
assert request_json["events"][0]["params"] == {"x": 1, "y": 2, "z": 3}
assert request_json["events"][0]["returns"] == 6
assert request_json["events"][0]["params"] == {"x": 1, "y": 2}
assert request_json["events"][0]["returns"] == 3

second_last_request_json = mock_req.request_history[-2].json()
assert (
Expand All @@ -206,9 +206,8 @@ async def async_add(x, y):
assert second_last_request_json["events"][0]["params"] == {
"x": 1,
"y": 2,
"z": 3,
}
assert second_last_request_json["events"][0]["returns"] == 6
assert second_last_request_json["events"][0]["returns"] == 3

session_1.end_session(end_state="Success")
session_2.end_session(end_state="Success")

0 comments on commit 9120b79

Please sign in to comment.