mirror of
https://github.com/aiogram/aiogram.git
synced 2026-04-08 16:37:47 +00:00
Fix i18n relative path + reformat using pre-commit (#1740)
* fix: i18n relative path + reformat using `pre-commit` * chore: changes --------- Co-authored-by: Katant <katantdev@mail.ru>
This commit is contained in:
parent
b27ca9a45d
commit
7201e82238
10 changed files with 9 additions and 10 deletions
|
|
@ -1,3 +1,4 @@
|
|||
from pathlib import Path
|
||||
from typing import Any, Dict
|
||||
|
||||
import pytest
|
||||
|
|
@ -27,6 +28,10 @@ class TestI18nCore:
|
|||
def test_init(self, i18n: I18n):
|
||||
assert set(i18n.available_locales) == {"en", "uk"}
|
||||
|
||||
def test_init_relative(self):
|
||||
i18n_relative = I18n(path="tests/data/locales")
|
||||
assert set(i18n_relative.available_locales) == {"en", "uk"}
|
||||
|
||||
def test_reload(self, i18n: I18n):
|
||||
i18n.reload()
|
||||
assert set(i18n.available_locales) == {"en", "uk"}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue