Skip to content

Commit

Permalink
Fix print test
Browse files Browse the repository at this point in the history
  • Loading branch information
gabrielmbmb committed Oct 7, 2024
1 parent a6349da commit 6a79f0f
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
5 changes: 3 additions & 2 deletions tests/integration/test_prints.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@
# limitations under the License.

from functools import partial
from typing import Union

import pytest

Expand Down Expand Up @@ -57,14 +58,14 @@


class TestLLM(DummyLLM, MagpieChatTemplateMixin):
magpie_pre_query_template: str = "llama3"
magpie_pre_query_template: Union[str, None] = "llama3"


llm = TestLLM()


@pytest.mark.parametrize("task", tasks)
def test_prints(task):
def test_prints(task) -> None:
t = task(llm=llm)
t.load()
t.print()
Expand Down
2 changes: 1 addition & 1 deletion tests/unit/conftest.py
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ def model_name(self) -> str:
return "test"

def generate( # type: ignore
self, input: "FormattedInput", num_generations: int = 1
self, inputs: "FormattedInput", num_generations: int = 1
) -> "GenerateOutput":
return ["output" for _ in range(num_generations)]

Expand Down

0 comments on commit 6a79f0f

Please sign in to comment.