Skip to content

Commit

Permalink
Fix tests and linting following rebase
Browse files Browse the repository at this point in the history
  • Loading branch information
sdispater committed Aug 6, 2023
1 parent fdd182a commit c197c0a
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions tests/localization/test_tr.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@


def test_diff_for_humans():
with pendulum.test(pendulum.datetime(2016, 8, 29)):
with pendulum.travel_to(pendulum.datetime(2016, 8, 29), freeze=True):
diff_for_humans()


Expand Down Expand Up @@ -49,10 +49,10 @@ def diff_for_humans():
assert d.diff_for_humans(locale=locale) == "2 ay önce"

d = pendulum.now().subtract(years=1)
assert d.diff_for_humans(locale=locale) == "1 yıl önce"
assert d.diff_for_humans(locale=locale) == "1 yıl önce" # noqa: RUF001

d = pendulum.now().subtract(years=2)
assert d.diff_for_humans(locale=locale) == "2 yıl önce"
assert d.diff_for_humans(locale=locale) == "2 yıl önce" # noqa: RUF001

d = pendulum.now().add(seconds=1)
assert d.diff_for_humans(locale=locale) == "1 saniye sonra"
Expand Down

0 comments on commit c197c0a

Please sign in to comment.