feat: add run script and finalize test fixtures
This commit is contained in:
+22
-1
@@ -1 +1,22 @@
|
||||
"""Shared test fixtures."""
|
||||
"""Shared test fixtures for AI Hell."""
|
||||
|
||||
import tempfile
|
||||
from pathlib import Path
|
||||
|
||||
import pytest
|
||||
|
||||
from server.config import config
|
||||
|
||||
|
||||
@pytest.fixture
|
||||
def tmp_assets(tmp_path):
|
||||
"""Temporary assets directory for pool tests."""
|
||||
return tmp_path
|
||||
|
||||
|
||||
@pytest.fixture(autouse=True)
|
||||
def _reset_config():
|
||||
"""Reset config to defaults between tests."""
|
||||
# Config is a module-level singleton; tests shouldn't mutate it
|
||||
# but if they do, this ensures isolation
|
||||
yield
|
||||
|
||||
Reference in New Issue
Block a user