langchain/libs/standard-tests/langchain_tests/integration_tests
Mason Daugherty 6d71b6b6ee
standard-tests: refactoring and fixes (#31703)
- `libs/core/langchain_core/messages/base.py`: add model name to
examples [per
docs](https://python.langchain.com/api_reference/standard_tests/integration_tests/langchain_tests.integration_tests.chat_models.ChatModelIntegrationTests.html#langchain_tests.integration_tests.chat_models.ChatModelIntegrationTests.test_usage_metadata)
("0.3.17: Additionally check for the presence of model_name in the
response metadata, which is needed for usage tracking in callback
handlers")
- `libs/core/langchain_core/utils/function_calling.py`: correct typo
-
`libs/standard-tests/langchain_tests/integration_tests/chat_models.py`:
- `magic_function(input)` -> `magic_function(_input)` to prevent warning
about redefining built in `input`
    - relocate a few tests for better grouping and narrative flow
    - suppress some type hint warnings following suit from similar tests
    - fix a few more typos
- validate not only that `model_name` is defined, but that it is not
empty (test_usage_metadata)
2025-06-23 23:22:31 +00:00
..
__init__.py multiple: combine sync/async vector store standard test suites (#28580) 2024-12-06 14:55:06 -05:00
base_store.py fix: correct typo in docstring for three_values fixture (#31638) 2025-06-17 16:51:07 -04:00
cache.py standard-tests: show right classes in api docs (#28591) 2024-12-06 14:48:13 -08:00
chat_models.py standard-tests: refactoring and fixes (#31703) 2025-06-23 23:22:31 +00:00
embeddings.py tests[patch]: run standard tests for embeddings and populate embeddings API ref (#28545) 2024-12-05 19:39:03 +00:00
indexer.py standard-tests: show right classes in api docs (#28591) 2024-12-06 14:48:13 -08:00
retrievers.py standard-tests: retriever docstrings (#28596) 2024-12-07 00:32:19 +00:00
tools.py standard-tests: Fix ToolsIntegrationTests to correctly handle "content_and_artifact" tools (#29391) 2025-02-05 21:27:09 -05:00
vectorstores.py standard-tests: sync/async vectorstore tests conditional (#28636) 2024-12-09 18:02:55 +00:00