9 lines
331 B
Python
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
|