155d56e8e8
- Move bigmind/ -> mcp/bigmind/ - Move webscraper/ -> mcp/webscraper/ - Move mss-failsafe/ -> java/mss-failsafe/ - Move Wellmann-Shop/ -> java/wellmann-shop/ (normalize to kebab-case) - Add .roo/ IDE config files to tracking - Add plans/REPO_STRATEGY.md (monorepo strategy document) - Expand .gitignore: Java/Maven, Node/TS, coverage, uv.lock - Rewrite README.md as navigation index - Update .roo/mcp.json webscraper path to mcp/webscraper/
22 lines
676 B
Python
22 lines
676 B
Python
import os
|
|
import sys
|
|
import pytest
|
|
|
|
# Add project root and src/ to path so bigmind and server tools are importable
|
|
sys.path.insert(0, os.path.abspath(os.path.join(os.path.dirname(__file__), "..")))
|
|
sys.path.insert(0, os.path.abspath(os.path.join(os.path.dirname(__file__), "..", "src")))
|
|
|
|
|
|
@pytest.fixture(autouse=True)
|
|
def temp_db(tmp_path, monkeypatch):
|
|
"""Redirect every test to a fresh temporary database."""
|
|
db_file = tmp_path / "test_memory.db"
|
|
monkeypatch.setenv("BIGMIND_DB_PATH", str(db_file))
|
|
monkeypatch.setenv("BIGMIND_USER", "testuser")
|
|
|
|
# Re-initialise DB with the new path
|
|
from bigmind.db import init_db
|
|
init_db()
|
|
yield db_file
|
|
|