Skip to content

Commit

Permalink
fix: black
Browse files Browse the repository at this point in the history
  • Loading branch information
k11kirky committed Jan 24, 2025
1 parent 2e3a7f2 commit c9548a7
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions posthog/test/ai/langchain/test_callbacks.py
Original file line number Diff line number Diff line change
Expand Up @@ -1046,6 +1046,7 @@ def test_error(mock_client):
assert props["$ai_is_error"] is True
assert props["$ai_error"] == "Test error"


def test_http_error(mock_client):
prompt = ChatPromptTemplate.from_messages([("user", "Foo")])
model = FakeMessagesListChatModel(responses=[AIMessage(content="Bar")], http_status=400)
Expand Down

0 comments on commit c9548a7

Please sign in to comment.