LibreTranslate/libretranslate/tests/test_init.py

10 lines
228 B
Python
Raw Normal View History

from libretranslate.init import boot
2021-02-09 14:21:53 +00:00
from argostranslate import package
2021-05-18 03:41:02 +00:00
2021-02-09 14:21:53 +00:00
def test_boot_argos():
"""Test Argos translate models initialization"""
boot(["en", "es"])
2021-02-09 14:21:53 +00:00
assert len(package.get_installed_packages()) >= 2