You've already forked LibreTranslate
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:
13
tests/test_init.py
Normal file
13
tests/test_init.py
Normal 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
|
||||
|
Reference in New Issue
Block a user