11 lines
328 B
Python
11 lines
328 B
Python
|
|
from csv_parser.import_errors import enrich_row_error
|
||
|
|
|
||
|
|
|
||
|
|
def test_enrich_numeric_overflow():
|
||
|
|
d = enrich_row_error(
|
||
|
|
"numeric field overflow\nDETAIL: A field with precision 5, scale 2\n",
|
||
|
|
module="activity",
|
||
|
|
)
|
||
|
|
assert d["code"] == "db_numeric_overflow"
|
||
|
|
assert d["hint"] and "kj" in d["hint"].lower()
|