test: Skip tests requiring optional dependencies
- Skip test_benchmark.py if psutil not installed - Skip test_embedding.py if numpy not installed - Skip test_embedding_pipeline.py if numpy not installed - Uses pytest.importorskip() for clean dependency handling - Fixes CI test collection errors for optional features
This commit is contained in:
@@ -2,10 +2,13 @@
|
||||
Tests for benchmarking suite.
|
||||
"""
|
||||
|
||||
import pytest
|
||||
import time
|
||||
import json
|
||||
from datetime import datetime
|
||||
|
||||
# Skip all tests if psutil is not installed
|
||||
pytest.importorskip("psutil")
|
||||
|
||||
from skill_seekers.benchmark import (
|
||||
Benchmark,
|
||||
|
||||
Reference in New Issue
Block a user