Skip to content

Commit a2cda1f

Browse files
committed
feat: 303584 resolve tests
1 parent 1adb561 commit a2cda1f

2 files changed

Lines changed: 282 additions & 268 deletions

File tree

src/country_workspace/utils/document_columns.py

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -7,10 +7,7 @@
77

88
_COLUMN_RE = re.compile(r"^document_(\d+)_(type|number|country|expire_date)$")
99

10-
_NORMALIZED_TYPES: dict[str, str] = {}
11-
for _t in DOCUMENT_TYPES:
12-
_NORMALIZED_TYPES[_t] = _t
13-
_NORMALIZED_TYPES[_t.replace("_", " ")] = _t
10+
_NORMALIZED_TYPES: dict[str, str] = {key: t for t in DOCUMENT_TYPES for key in (t, t.replace("_", " "))}
1411

1512
_FIELD_SUFFIX_MAP = {
1613
"number": "document_number",

0 commit comments

Comments
 (0)