Files
clientflow_backend/tests/test_v4915_reconciliation_amount_cast.py
2026-06-09 22:55:58 +01:00

9 lines
331 B
Python

from pathlib import Path
def test_v4915_reconstruction_amount_update_casts_numeric_parameter():
source = Path("app/reconciliation_service.py").read_text()
assert "WHEN CAST(:amount AS NUMERIC) IS NOT NULL" in source
assert "THEN CAST(:amount AS NUMERIC)" in source
assert "WHEN :amount IS NOT NULL" not in source