@@ -102,7 +102,7 @@ def test_i18n() -> None:
102102 assert humanize .naturaltime (in_three_days , when = NOW ) == "3 gün sonra"
103103
104104 except FileNotFoundError :
105- pytest .skip ("Generate .mo with scripts/generate-translation-binaries.sh " )
105+ pytest .skip ("Generate .mo with tox -e compile-translations " )
106106
107107 finally :
108108 humanize .i18n .deactivate ()
@@ -127,7 +127,7 @@ def test_naturaltime_persian(seconds: int, expected: str) -> None:
127127 value = NOW + dt .timedelta (seconds = seconds )
128128 assert humanize .naturaltime (value , when = NOW ) == expected
129129 except FileNotFoundError :
130- pytest .skip ("Generate .mo with scripts/generate-translation-binaries.sh " )
130+ pytest .skip ("Generate .mo with tox -e compile-translations " )
131131 finally :
132132 humanize .deactivate ()
133133
@@ -161,7 +161,7 @@ def test_intcomma() -> None:
161161 assert humanize .intcomma ("1.234.567,89" ) == "1.234.567,89"
162162
163163 except FileNotFoundError :
164- pytest .skip ("Generate .mo with scripts/generate-translation-binaries.sh " )
164+ pytest .skip ("Generate .mo with tox -e compile-translations " )
165165
166166 finally :
167167 humanize .i18n .deactivate ()
@@ -180,7 +180,7 @@ def test_naturaldelta() -> None:
180180 assert humanize .naturaldelta (seconds ) == "1,234 años"
181181
182182 except FileNotFoundError :
183- pytest .skip ("Generate .mo with scripts/generate-translation-binaries.sh " )
183+ pytest .skip ("Generate .mo with tox -e compile-translations " )
184184
185185 finally :
186186 humanize .i18n .deactivate ()
@@ -270,7 +270,7 @@ def test_intword_i18n(locale: str, number: int, expected_result: str) -> None:
270270 try :
271271 humanize .i18n .activate (locale )
272272 except FileNotFoundError :
273- pytest .skip ("Generate .mo with scripts/generate-translation-binaries.sh " )
273+ pytest .skip ("Generate .mo with tox -e compile-translations " )
274274 else :
275275 assert humanize .intword (number ) == expected_result
276276 finally :
@@ -301,7 +301,7 @@ def test_naturalsize_i18n(locale: str, value: float, expected_result: str) -> No
301301 try :
302302 humanize .i18n .activate (locale )
303303 except FileNotFoundError :
304- pytest .skip ("Generate .mo with scripts/generate-translation-binaries.sh " )
304+ pytest .skip ("Generate .mo with tox -e compile-translations " )
305305 else :
306306 assert humanize .naturalsize (value ) == expected_result
307307 finally :
@@ -312,7 +312,7 @@ def test_naturalsize_i18n_binary() -> None:
312312 try :
313313 humanize .i18n .activate ("fr_FR" )
314314 except FileNotFoundError :
315- pytest .skip ("Generate .mo with scripts/generate-translation-binaries.sh " )
315+ pytest .skip ("Generate .mo with tox -e compile-translations " )
316316 else :
317317 assert humanize .naturalsize (3000 , binary = True ) == "2.9 Kio"
318318 finally :
@@ -334,7 +334,7 @@ def test_naturaldelta_one_year_i18n(
334334 try :
335335 humanize .i18n .activate (locale )
336336 except FileNotFoundError :
337- pytest .skip ("Generate .mo with scripts/generate-translation-binaries.sh " )
337+ pytest .skip ("Generate .mo with tox -e compile-translations " )
338338 else :
339339 assert humanize .naturaldelta (dt .timedelta (days = days )) == expected_result
340340 finally :
@@ -357,7 +357,7 @@ def test_langauge_codes(locale: str, expected_result: str) -> None:
357357 try :
358358 humanize .i18n .activate (locale )
359359 except FileNotFoundError :
360- pytest .skip ("Generate .mo with scripts/generate-translation-binaries.sh " )
360+ pytest .skip ("Generate .mo with tox -e compile-translations " )
361361 else :
362362 assert humanize .ordinal (5 ) == expected_result
363363 finally :
@@ -382,7 +382,7 @@ def test_ordinal_genders(
382382 try :
383383 humanize .i18n .activate (locale )
384384 except FileNotFoundError :
385- pytest .skip ("Generate .mo with scripts/generate-translation-binaries.sh " )
385+ pytest .skip ("Generate .mo with tox -e compile-translations " )
386386 else :
387387 assert humanize .ordinal (number , gender = gender ) == expected_result
388388 finally :
@@ -455,7 +455,7 @@ def test_none_locale(self) -> None:
455455 test_str = humanize .naturaltime (three_seconds )
456456 assert test_str == "3 seconds ago"
457457 except FileNotFoundError :
458- pytest .skip ("Generate .mo with scripts/generate-translation-binaries.sh " )
458+ pytest .skip ("Generate .mo with tox -e compile-translations " )
459459
460460 finally :
461461 humanize .i18n .deactivate ()
@@ -472,6 +472,6 @@ def test_intword_unit_has_no_format_placeholder(locale: str) -> None:
472472 for value in (1_000 , 1_000_000 , 1_000_000_000 , 10 ** 12 , 10 ** 15 , 10 ** 100 ):
473473 assert "%" not in humanize .intword (value )
474474 except FileNotFoundError :
475- pytest .skip ("Generate .mo with scripts/generate-translation-binaries.sh " )
475+ pytest .skip ("Generate .mo with tox -e compile-translations " )
476476 finally :
477477 humanize .i18n .deactivate ()
0 commit comments