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:
Artem Kushnerov 2026-01-02 08:01:02 +10:00 committed by GitHub
parent b27ca9a45d
commit 7201e82238
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
10 changed files with 9 additions and 10 deletions

View file

@ -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"}