test(realestate): add pytest harness with isolated SQLite fixture

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
2026-04-28 08:07:59 +09:00
parent 0fadc774d8
commit 62a9009fea
4 changed files with 39 additions and 1 deletions

View File

@@ -1,5 +1,6 @@
# realestate-lab/app/db.py
import json
import os
import sqlite3
import logging
from typing import Dict, Any, List, Optional
@@ -7,7 +8,7 @@ from datetime import date
logger = logging.getLogger("realestate-lab")
DB_PATH = "/app/data/realestate.db"
DB_PATH = os.getenv("REALESTATE_DB_PATH", "/app/data/realestate.db")
def _conn():