Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
18 changes: 18 additions & 0 deletions tests/test_i18n.py
Original file line number Diff line number Diff line change
Expand Up @@ -324,3 +324,21 @@
humanize.i18n.deactivate()

assert test_str == humanize.naturaltime(three_seconds)


from humanize.i18n import _gettext_noop

Check failure on line 329 in tests/test_i18n.py

View workflow job for this annotation

GitHub Actions / lint

ruff (E402)

tests/test_i18n.py:329:1: E402 Module level import not at top of file


def test_gettext_noop():
assert _gettext_noop("hello") == "hello"


from humanize.i18n import _ngettext_noop

Check failure on line 336 in tests/test_i18n.py

View workflow job for this annotation

GitHub Actions / lint

ruff (E402)

tests/test_i18n.py:336:1: E402 Module level import not at top of file


def test_gettext_noop():

Check failure on line 339 in tests/test_i18n.py

View workflow job for this annotation

GitHub Actions / lint

ruff (F811)

tests/test_i18n.py:339:5: F811 Redefinition of unused `test_gettext_noop` from line 332: `test_gettext_noop` redefined here tests/test_i18n.py:332:5: previous definition of `test_gettext_noop` here help: Remove definition: `test_gettext_noop`
assert _gettext_noop("hello") == "hello"


def test_ngettext_noop():
assert _ngettext_noop("item", "items") == ("item", "items")
Loading