mirror of
https://github.com/LibreTranslate/LibreTranslate.git
synced 2025-05-04 12:24:52 +00:00
Add tests for argos boot
This commit is contained in:
parent
9fe75094e0
commit
d53e08b57e
3 changed files with 87 additions and 26 deletions
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
|
||||
|
Loading…
Add table
Add a link
Reference in a new issue