diff --git a/tests/crew_test.py b/tests/crew_test.py index d7e4740cd..240e9731b 100644 --- a/tests/crew_test.py +++ b/tests/crew_test.py @@ -3,6 +3,7 @@ import hashlib import json import os +import sys from concurrent.futures import Future from unittest import mock from unittest.mock import MagicMock, patch @@ -3935,6 +3936,9 @@ def test_crew_guardrail_feedback_in_context(): @pytest.mark.vcr(filter_headers=["authorization"]) +@pytest.mark.skipif( + sys.version_info.minor == 11, reason="VCR cassette issues in Python 3.11" +) def test_before_kickoff_callback(): from crewai.project import CrewBase, agent, before_kickoff, task diff --git a/tests/knowledge/knowledge_test.py b/tests/knowledge/knowledge_test.py index fad2d2513..357a631a0 100644 --- a/tests/knowledge/knowledge_test.py +++ b/tests/knowledge/knowledge_test.py @@ -3,6 +3,7 @@ from pathlib import Path from typing import List, Union from unittest.mock import patch +import sys import pytest @@ -567,6 +568,9 @@ def test_docling_source(mock_vector_db): mock_vector_db.query.assert_called_once() +@pytest.mark.skipif( + sys.version_info.minor == 11, reason="VCR cassette issues in Python 3.11" +) def test_multiple_docling_sources(): urls: List[Union[Path, str]] = [ "https://lilianweng.github.io/posts/2024-11-28-reward-hacking/",