feat(standard-tests): formatting (#32504)

Not touching `pyproject.toml` or chat model related items as to not
interfere with work in wip0.4 branch
This commit is contained in:
Mason Daugherty
2025-08-11 13:30:30 -04:00
committed by GitHub
parent 457ce9c4b0
commit e5d0a4e4d6
6 changed files with 44 additions and 42 deletions

View File

@@ -42,7 +42,7 @@ class CustomSerializer:
class CustomPersister:
"""A custom persister for VCR that uses the CustomSerializer."""
"""A custom persister for VCR that uses the ``CustomSerializer``."""
@classmethod
def load_cassette(
@@ -88,9 +88,9 @@ _BASE_FILTER_HEADERS = [
@pytest.fixture(scope="session")
def _base_vcr_config() -> dict:
"""Configuration that every cassette will receive.
"""Get configuration that every cassette will receive.
(Anything permitted by vcr.VCR(**kwargs) can be put here.)
(Anything permitted by ``vcr.VCR(**kwargs)`` can be put here.)
"""
return {
"record_mode": "once",

View File

@@ -13,7 +13,7 @@ class RetrieversIntegrationTests(BaseStandardTests):
@property
@abstractmethod
def retriever_constructor(self) -> type[BaseRetriever]:
"""A BaseRetriever subclass to be tested."""
"""A ``BaseRetriever`` subclass to be tested."""
...
@property
@@ -30,7 +30,9 @@ class RetrieversIntegrationTests(BaseStandardTests):
def num_results_arg_name(self) -> str:
"""Returns the name of the parameter for the number of results returned.
Usually something like ``k`` or ``top_k``."""
Usually something like ``k`` or ``top_k``.
"""
return "k"
@pytest.fixture