Skip to content

Commit 462c81e

Browse files
committed
Updated tests/unit/models/config/test_customization.py
1 parent d9da223 commit 462c81e

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

tests/unit/models/config/test_customization.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,14 @@
11
"""Unit tests for Customization model."""
22

33
import pytest
4+
from pytest_subtests import SubTests
45

56
from pydantic import ValidationError
67

78
from models.config import Customization
89

910

10-
def test_service_customization(subtests) -> None:
11+
def test_service_customization(subtests: SubTests) -> None:
1112
"""Check the service customization class."""
1213
with subtests.test(msg="System prompt is enabled"):
1314
c = Customization()
@@ -43,7 +44,7 @@ def test_service_customization_wrong_system_prompt_path() -> None:
4344
_ = Customization(system_prompt_path="/path/does/not/exists")
4445

4546

46-
def test_service_customization_correct_system_prompt_path(subtests) -> None:
47+
def test_service_customization_correct_system_prompt_path(subtests: SubTests) -> None:
4748
"""Check the service customization class."""
4849
with subtests.test(msg="One line system prompt"):
4950
# pass a file containing system prompt

0 commit comments

Comments
 (0)