1ffd5bb8be
db/migrations/0002_debrief.sql documents the explicit SLICE-05 addition of the debrief_text column to sessions (the column was already in 0001_init.sql for forward-compatibility; this migration is a marker for history + any pre-SLICE-05 database). tests/test_debrief_persistence.py verifies both migrations apply cleanly, the debrief_text column exists, and a completed session's debrief is retrievable via SELECT debrief_text FROM sessions WHERE id=?. tests/conftest.py adds the shared tmp_db fixture. Full suite: 70 passed. ---ci--- phase: 1 milestone: v0.1 plan: 05 task: 05-05 status: execute persona: data-engineer requirements: covered: [REQ-DEBRIEF-01, REQ-STATE-01] ---/ci---
13 lines
243 B
Python
13 lines
243 B
Python
"""Shared pytest fixtures."""
|
|
|
|
from __future__ import annotations
|
|
|
|
from pathlib import Path
|
|
|
|
import pytest
|
|
|
|
|
|
@pytest.fixture
|
|
def tmp_db(tmp_path: Path) -> Path:
|
|
"""A temporary SQLite database path."""
|
|
return tmp_path / "test_praxis.db" |