mirror of
https://github.com/crewAIInc/crewAI.git
synced 2026-05-01 23:32:39 +00:00
test: mark converter tests requiring local services to skip in CI
This commit is contained in:
@@ -1,4 +1,5 @@
|
|||||||
import json
|
import json
|
||||||
|
import os
|
||||||
from typing import Dict, List, Optional
|
from typing import Dict, List, Optional
|
||||||
from unittest.mock import MagicMock, Mock, patch
|
from unittest.mock import MagicMock, Mock, patch
|
||||||
|
|
||||||
@@ -359,6 +360,7 @@ def test_convert_with_instructions():
|
|||||||
|
|
||||||
|
|
||||||
@pytest.mark.vcr(filter_headers=["authorization"])
|
@pytest.mark.vcr(filter_headers=["authorization"])
|
||||||
|
@pytest.mark.requires_local_services
|
||||||
def test_converter_with_llama3_2_model():
|
def test_converter_with_llama3_2_model():
|
||||||
llm = LLM(model="openrouter/meta-llama/llama-3.2-3b-instruct")
|
llm = LLM(model="openrouter/meta-llama/llama-3.2-3b-instruct")
|
||||||
sample_text = "Name: Alice Llama, Age: 30"
|
sample_text = "Name: Alice Llama, Age: 30"
|
||||||
@@ -376,6 +378,7 @@ def test_converter_with_llama3_2_model():
|
|||||||
|
|
||||||
|
|
||||||
@pytest.mark.vcr(filter_headers=["authorization"])
|
@pytest.mark.vcr(filter_headers=["authorization"])
|
||||||
|
@pytest.mark.requires_local_services
|
||||||
def test_converter_with_llama3_1_model():
|
def test_converter_with_llama3_1_model():
|
||||||
llm = LLM(model="ollama/llama3.1", base_url="http://localhost:11434")
|
llm = LLM(model="ollama/llama3.1", base_url="http://localhost:11434")
|
||||||
sample_text = "Name: Alice Llama, Age: 30"
|
sample_text = "Name: Alice Llama, Age: 30"
|
||||||
|
|||||||
Reference in New Issue
Block a user