langchain/libs/standard-tests/langchain_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
..
integration_tests standard-tests: refactoring and fixes (#31703) 2025-06-23 23:22:31 +00:00
unit_tests infra: remove use of --vcr-record=none (#31452) 2025-06-01 10:49:59 -04:00
utils standard-tests: private members and tools unit troubleshoot (#28590) 2024-12-06 13:52:58 -08:00
__init__.py tests[patch]: nits (#28601) 2024-12-07 00:13:04 +00:00
base.py langchain-tests: allow subclasses to add addition, non-standard tests (#30204) 2025-03-17 23:37:16 +00:00
conftest.py standard-tests: migrate to pytest-recording (#31425) 2025-05-31 15:21:15 -04:00
py.typed