Dbu-central-bot / tests /test_i18n.py
cipher-attacks's picture
stage 1
b37ebd1
Raw History Blame Contribute Delete
292 Bytes
import json
from pathlib import Path
LOCALES = Path(__file__).resolve().parents[1] / "locales"
def test_same_keys():
am = json.loads((LOCALES / "am.json").read_text(encoding="utf-8"))
en = json.loads((LOCALES / "en.json").read_text(encoding="utf-8"))
assert set(am) == set(en)