Skip to content

Commit

Permalink
data: rename phone_format to phone_number_format
Browse files Browse the repository at this point in the history
  • Loading branch information
sinaatalay committed Jul 19, 2024
1 parent 7e20bae commit 10f18be
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion rendercv/data/models/locale_catalog.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ class LocaleCatalog(RenderCVBaseModelWithoutExtraKeys):
updates the `locale_catalog` dictionary.
"""

phone_format: Optional[Literal["national", "international", "E164"]] = (
phone_number_format: Optional[Literal["national", "international", "E164"]] = (
pydantic.Field(
default="national",
title="Phone Number Format",
Expand Down
2 changes: 1 addition & 1 deletion tests/test_data.py
Original file line number Diff line number Diff line change
Expand Up @@ -697,7 +697,7 @@ def test_locale_catalog():
"11",
"12",
],
phone_format="international",
phone_number_format="international",
)

assert locale_catalog.locale_catalog == data_model.locale_catalog.model_dump()
Expand Down

0 comments on commit 10f18be

Please sign in to comment.