Skip to content

Commit

Permalink
take the black.
Browse files Browse the repository at this point in the history
  • Loading branch information
krisfremen committed Oct 30, 2024
1 parent b10b79b commit 6567996
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion tests/test_locales.py
Original file line number Diff line number Diff line change
Expand Up @@ -34,10 +34,11 @@ def test_locale_validation(self):

def test_locale_name_validation(self):
import re

for locale_cls in self.locales.values():
for locale_name in locale_cls.names:
assert locale_name.islower()
pattern = r'^[a-z]{2}(-[a-z]{2})?(?:-latn|-cyrl)?$'
pattern = r"^[a-z]{2}(-[a-z]{2})?(?:-latn|-cyrl)?$"
assert re.match(pattern, locale_name)

def test_duplicated_locale_name(self):
Expand Down

0 comments on commit 6567996

Please sign in to comment.