Files
DesTEngSsv006_swd/kischdle/llmux/tests/conftest.py
2026-04-04 07:23:14 +02:00

12 lines
384 B
Python

import os
import pytest
from pathlib import Path
# Point config to the project's config directory for tests
@pytest.fixture(autouse=True)
def set_config_dir(tmp_path, monkeypatch):
"""Use the project's config files for tests by default."""
config_dir = Path(__file__).parent.parent / "config"
monkeypatch.setenv("LLMUX_CONFIG_DIR", str(config_dir))
return config_dir