12 lines
384 B
Python
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
|