Skip to content
Snippets Groups Projects
Commit a863f872 authored by Simonas's avatar Simonas
Browse files

nltk download to tests

parent ed14f097
No related branches found
No related tags found
No related merge requests found
......@@ -11,4 +11,4 @@ lint lint_diff:
poetry run ruff .
test:
poetry run pytest -vv -n auto --cov=semantic_router --cov-report=term-missing --cov-report=xml --cov-fail-under=100
poetry run pytest -vv -n 20 --cov=semantic_router --cov-report=term-missing --cov-report=xml --cov-fail-under=100
<?xml version="1.0" ?>
<coverage version="7.3.2" timestamp="1702457433568" lines-valid="311" lines-covered="311" line-rate="1" branches-covered="0" branches-valid="0" branch-rate="0" complexity="0">
<coverage version="7.3.2" timestamp="1702458696684" lines-valid="311" lines-covered="311" line-rate="1" branches-covered="0" branches-valid="0" branch-rate="0" complexity="0">
<!-- Generated by coverage.py: https://coverage.readthedocs.io/en/7.3.2 -->
<!-- Based on https://raw.githubusercontent.com/cobertura/web/master/htdocs/xml/coverage-04.dtd -->
<sources>
......
import pytest
import nltk
from semantic_router.encoders import BaseEncoder, CohereEncoder, OpenAIEncoder
from semantic_router.layer import (
......@@ -9,6 +10,8 @@ from semantic_router.layer import (
# Replace with the actual module name
from semantic_router.schema import Decision
nltk.download("punkt")
def mock_encoder_call(utterances):
# Define a mapping of utterances to return values
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment