Spaces:
Running on Zero
Running on Zero
Download tests/test_i18n.py from cipher-attacks/Dbu-central-bot: direct link, hf CLI and curl.
- Browser
- Download file 292 Bytes
-
https://huggingface.co/spaces/cipher-attacks/Dbu-central-bot/resolve/main/tests/test_i18n.py
- Command line
-
hf download hf://spaces/cipher-attacks/Dbu-central-bot/tests/test_i18n.py
-
curl -L -o test_i18n.py https://huggingface.co/spaces/cipher-attacks/Dbu-central-bot/resolve/main/tests/test_i18n.py
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) | |