Skip to content

Commit

Permalink
Bypass tests
Browse files Browse the repository at this point in the history
  • Loading branch information
vatorre committed Mar 25, 2024
1 parent 7d0c228 commit e5773ef
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 9 deletions.
12 changes: 6 additions & 6 deletions tests/test_base_supervised.py
Original file line number Diff line number Diff line change
Expand Up @@ -63,18 +63,18 @@ def test_wrong_predict(self):
f"type `List[str]`. Instead they got: `{type(examples)}`"
)

with pytest.raises(ValueError) as error:
with pytest.raises(ValueError):
pred = BaseSupervised(
language="es",
model_provider_name="fake-llm",
model_name="fake-static",
).predict([1, 2, 3])

assert error.value.args[0] == (
"BaseSupervised error in function `predict()`. "
"Arguments `examples` are expected to be of type "
"`List[str]`. Some values seem no to be of type `str`."
)
assert error.value.args[0] == (
"BaseSupervised error in function `predict()`. "
"Arguments `examples` are expected to be of type "
"`List[str]`. Some values seem no to be of type `str`."
)

def test_wrong_train(self):
"""
Expand Down
3 changes: 0 additions & 3 deletions tests/test_base_unsupervised.py
Original file line number Diff line number Diff line change
@@ -1,10 +1,7 @@
import os
import tempfile

import pytest

from promptmeteo.tasks import Task
from promptmeteo.tasks import TaskBuilder
from promptmeteo.base import BaseUnsupervised


Expand Down

0 comments on commit e5773ef

Please sign in to comment.