refactor: remove redundant comments and docstrings (#6527)
* refactor: remove redundant comments and docstrings * fix(signal): annotate async context manager as a generator
This commit is contained in:
1 parent
cb3ba45317
commit
a4d2430140
922 files changed
+406
-7738
No files matched your search
@@ -1,5 +1,3 @@
|
||||
"""Tests for provider extra_query config injection into client defaults."""
|
||||
|
||||
from __future__ import annotations
|
||||
|
||||
from unittest.mock import MagicMock, patch
|
||||
@@ -10,7 +8,6 @@ from nanobot.providers.openai_compat_provider import OpenAICompatProvider
|
||||
|
||||
|
||||
class TestExtraQuerySchema:
|
||||
"""Verify ProviderConfig accepts extra_query."""
|
||||
|
||||
def test_default_is_none(self) -> None:
|
||||
config = ProviderConfig()
|
||||
@@ -22,7 +19,6 @@ class TestExtraQuerySchema:
|
||||
|
||||
|
||||
class TestExtraQueryInit:
|
||||
"""Verify the provider stores extra_query from config."""
|
||||
|
||||
def test_default_is_empty(self) -> None:
|
||||
provider = OpenAICompatProvider(api_key="test")
|
||||
@@ -39,7 +35,6 @@ class TestExtraQueryInit:
|
||||
|
||||
|
||||
class TestExtraQueryBuildClient:
|
||||
"""Verify extra_query flows into AsyncOpenAI default_query."""
|
||||
|
||||
def test_build_client_passes_default_query(self) -> None:
|
||||
mock_client = MagicMock()
|
||||
@@ -71,7 +66,6 @@ class TestExtraQueryBuildClient:
|
||||
|
||||
|
||||
class TestProviderSignatureIncludesExtraQuery:
|
||||
"""Verify provider_signature tracks provider extra_query changes."""
|
||||
|
||||
def test_provider_signature_tracks_extra_query(self) -> None:
|
||||
base = {
|
||||
|
||||
Reference in new issue
Block a user