24 lines
820 B
Python
24 lines
820 B
Python
from pathlib import Path
|
|
|
|
from jarca_ledger_mcp.db import init_db
|
|
from jarca_ledger_mcp.application.monthly_settlement_service import (
|
|
list_monthly_settlement_history,
|
|
get_monthly_settlement_history_record,
|
|
)
|
|
|
|
|
|
def test_monthly_history_is_explicitly_unsupported_in_schema15(tmp_path: Path):
|
|
path = str(tmp_path / "history.sqlite3")
|
|
init_db(path)
|
|
result = list_monthly_settlement_history(db_path=path)
|
|
assert result["success"] is False
|
|
assert result["error_code"] == "unsupported"
|
|
|
|
|
|
def test_monthly_history_record_read_is_explicitly_unsupported(tmp_path: Path):
|
|
path = str(tmp_path / "history-read.sqlite3")
|
|
init_db(path)
|
|
result = get_monthly_settlement_history_record("run-1", db_path=path)
|
|
assert result["success"] is False
|
|
assert result["error_code"] == "unsupported"
|