mirror of
https://github.com/crewAIInc/crewAI.git
synced 2026-05-03 08:12:39 +00:00
chore: remove decorator kwarg to ensure global conftest applies
This commit is contained in:
0
lib/crewai/tests/llms/openai/__init__.py
Normal file
0
lib/crewai/tests/llms/openai/__init__.py
Normal file
@@ -34,7 +34,7 @@ def test_openai_completion_is_used_when_no_provider_prefix():
|
||||
assert llm.provider == "openai"
|
||||
assert llm.model == "gpt-4o"
|
||||
|
||||
@pytest.mark.vcr(filter_headers=["authorization"])
|
||||
@pytest.mark.vcr()
|
||||
def test_openai_is_default_provider_without_explicit_llm_set_on_agent():
|
||||
"""
|
||||
Test that OpenAI is the default provider when no explicit LLM is set on the agent
|
||||
@@ -302,7 +302,7 @@ def test_openai_completion_with_tools():
|
||||
assert call_kwargs['tools'] is not None
|
||||
assert len(call_kwargs['tools']) > 0
|
||||
|
||||
@pytest.mark.vcr(filter_headers=["authorization"])
|
||||
@pytest.mark.vcr()
|
||||
def test_openai_completion_call_returns_usage_metrics():
|
||||
"""
|
||||
Test that OpenAICompletion.call returns usage metrics
|
||||
|
||||
Reference in New Issue
Block a user