1
0
mirror of https://github.com/LibreTranslate/LibreTranslate.git synced 2024-09-13 00:36:35 +02:00
LibreTranslate/tests/test_init.py

14 lines
336 B
Python
Raw Normal View History

2021-02-09 15:21:53 +01:00
import pytest
from app.init import boot
from argostranslate import package
def test_boot_argos():
"""Test Argos translate models initialization"""
boot()
print(package.get_installed_packages())
assert len(package.get_installed_packages()) > 2
# Check length models?
# assert 0.80 < scores['precision'] < 0.95