llm/tests/conftest.py
2023-06-15 19:59:08 +01:00

17 lines
348 B
Python

import pytest
@pytest.fixture
def log_path(tmpdir):
return tmpdir / "logs.db"
@pytest.fixture
def keys_path(tmpdir):
return tmpdir / "keys.json"
@pytest.fixture(autouse=True)
def env_setup(monkeypatch, log_path, keys_path):
monkeypatch.setenv("LLM_KEYS_PATH", str(keys_path))
monkeypatch.setenv("LLM_LOG_PATH", str(log_path))