test: align test names with current assertions (#6130)

* test: align test names with current assertions

* test: align suite names and explicit configuration cases
This commit is contained in:
chengyongru authored and GitHub committed 2026-10-10 11:49:32 +08:00
1 parent 50256940be
commit f04ed1c2eb
13 files changed
+24 -25

No files matched your search

@@ -10,7 +10,7 @@ from nanobot.providers.registry import create_dynamic_spec
class TestCustomProviderThinkingStyle:
"""Verify that thinking_style flows from config to ProviderSpec."""
def test_default_thinking_style_is_empty(self) -> None:
def test_default_thinking_style_is_none(self) -> None:
cfg = ProviderConfig()
assert cfg.thinking_style is None
@@ -2,7 +2,7 @@
Validates that:
- OpenRouter (no strip) keeps model names intact.
- AiHubMix (strip_model_prefix=True) strips provider prefixes.
- AiHubMix strips provider prefixes declared by its spec.
- Standard providers pass model names through as-is.
"""
@@ -614,7 +614,7 @@ async def test_openrouter_keeps_model_name_intact() -> None:
@pytest.mark.asyncio
async def test_aihubmix_strips_model_prefix() -> None:
"""AiHubMix strips the provider prefix (strip_model_prefix=True)."""
"""AiHubMix strips provider prefixes declared by its spec."""
mock_create = AsyncMock(return_value=_fake_chat_response())
spec = find_by_name("aihubmix")