Skip to content

Commit fa0d43e

Browse files
authored
fix: Make doctests locale-independent (#390) (#391)
1 parent f01109c commit fa0d43e

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/kleinanzeigen_bot/i18n.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -153,6 +153,7 @@ def set_current_locale(new_locale:Locale) -> None:
153153

154154
def pluralize(noun:str, count:int | Sized, prefix_with_count:bool = True) -> str:
155155
"""
156+
>>> set_current_locale(Locale("en")) # Setup for doctests
156157
>>> pluralize("field", 1)
157158
'1 field'
158159
>>> pluralize("field", 2)

0 commit comments

Comments
 (0)