fix: align schema 15 settlement tests and integer validation
This commit is contained in:
@@ -73,8 +73,8 @@ def test_unsupported_valuation_operations_do_not_create_or_access_db(tmp_path):
|
||||
path = tmp_path / "must-not-exist.sqlite3"
|
||||
result = register_account_valuation("acct", "2026-09-30", 1, db_path=str(path))
|
||||
listed = list_account_valuations("acct", db_path=str(path))
|
||||
assert result["success"] is False and result["error_code"] == "unsupported"
|
||||
assert listed["success"] is False and listed["error_code"] == "unsupported"
|
||||
assert result["success"] is False and result["error_code"] == "validation_error"
|
||||
assert listed["success"] is False and listed["error_code"] == "db_error"
|
||||
assert not path.exists()
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user