Skip to content

Commit 68d7bcc

Browse files
committed
test(agent): skip agent tests when smolagents missing
1 parent c670dbd commit 68d7bcc

3 files changed

Lines changed: 12 additions & 0 deletions

File tree

tests/unit/test_agent_engine.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,10 @@
55
including the ReAct loop, validation, and retry functionality.
66
"""
77

8+
import pytest
9+
10+
pytest.importorskip("smolagents")
11+
812
from unittest.mock import MagicMock, patch
913

1014
import pytest

tests/unit/test_agent_models.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,10 @@
55
reasoning steps, and query history.
66
"""
77

8+
import pytest
9+
10+
pytest.importorskip("smolagents")
11+
812
from datetime import datetime
913

1014
from app.agent.models import (

tests/unit/test_agent_tools.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,10 @@
55
SQL execution, validation, and schema inspection.
66
"""
77

8+
import pytest
9+
10+
pytest.importorskip("smolagents")
11+
812
from app.agent.tools import extract_sql_from_text, result_validator
913

1014
# =============================================================================

0 commit comments

Comments
 (0)