Skip to content

Commit e43d667

Browse files
committed
fix: skip test without key
1 parent f3b01bd commit e43d667

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

posthog/test/ai/langchain/test_callbacks.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -773,6 +773,7 @@ def test_tool_calls(mock_client):
773773
assert "additional_kwargs" not in call["properties"]["$ai_output_choices"][0]
774774

775775

776+
@pytest.mark.skipif(not OPENAI_API_KEY, reason="OPENAI_API_KEY is not set")
776777
def test_core_model_params(mock_client):
777778
prompt = ChatPromptTemplate.from_messages([("user", "Foo")])
778779
chain = prompt | ChatOpenAI(

0 commit comments

Comments
 (0)