feat: project scaffolding with config files and test fixtures
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
11
kischdle/llmux/tests/conftest.py
Normal file
11
kischdle/llmux/tests/conftest.py
Normal file
@@ -0,0 +1,11 @@
|
||||
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
|
||||
Reference in New Issue
Block a user