Skip to content

Commit

Permalink
test: add tests for weekdays in farsi
Browse files Browse the repository at this point in the history
  • Loading branch information
fouladi committed Oct 25, 2024
1 parent 9610acd commit ee2926c
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions tests/test_locales.py
Original file line number Diff line number Diff line change
Expand Up @@ -1463,6 +1463,11 @@ def test_timeframes(self):
assert self.locale._format_timeframe("months", 2) == "2 ماه"
assert self.locale._format_timeframe("years", 2) == "2 سال"

def test_weekday(self):
fa = arrow.Arrow(2024, 10, 25, 17, 30, 00)
assert self.locale.day_name(fa.isoweekday()) == "جمعه"
assert self.locale.day_abbreviation(fa.isoweekday()) == "جمعه"


@pytest.mark.usefixtures("lang_locale")
class TestNepaliLocale:
Expand Down

0 comments on commit ee2926c

Please sign in to comment.