1
0
mirror of https://github.com/LibreTranslate/LibreTranslate.git synced 2025-07-12 22:22:02 +02:00

Add tests for argos boot

This commit is contained in:
Vincent Emonet
2021-02-09 15:21:53 +01:00
parent 9fe75094e0
commit d53e08b57e
3 changed files with 87 additions and 26 deletions

13
tests/test_init.py Normal file
View File

@ -0,0 +1,13 @@
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