""" Pytest configuration and fixtures for NL→SQL Leaderboard tests. """ import os import sys import pytest from pathlib import Path # Add src to path for imports sys.path.append('src') # Set test environment variables os.environ["MOCK_MODE"] = "true" os.environ["HF_TOKEN"] = "" # Ensure no real API calls during tests @pytest.fixture def mock_mode(): """Fixture to ensure mock mode is enabled for tests.""" os.environ["MOCK_MODE"] = "true" return True @pytest.fixture def test_data_dir(): """Fixture to get the test data directory.""" return Path("tasks") @pytest.fixture def config_dir(): """Fixture to get the configuration directory.""" return Path("config")