File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 11"""Unit tests for Customization model."""
22
33import pytest
4+ from pytest_subtests import SubTests
45
56from pydantic import ValidationError
67
78from 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
You can’t perform that action at this time.
0 commit comments