mirror of
https://github.com/hwchase17/langchain.git
synced 2025-09-17 23:41:46 +00:00
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:
@@ -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",
|
||||
|
@@ -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
|
||||
|
Reference in New Issue
Block a user