langchain/libs/standard-tests/langchain_tests/unit_tests
Matthew Farrellee e7032901c3
langchain-tests: allow test_serdes for packages outside the default valid namespaces (#30343)
**Description:**

a third party package not listed in the default valid namespaces cannot
pass test_serdes because the load() does not allow for extending the
valid_namespaces.

test_serdes will fail with -
ValueError: Invalid namespace: {'lc': 1, 'type': 'constructor', 'id':
['langchain_other', 'chat_models', 'ChatOther'], 'kwargs':
{'model_name': '...', 'api_key': '...'}, 'name': 'ChatOther'}

this change has test_serdes automatically extend valid_namespaces based
off the ChatModel under test's namespace.
2025-03-22 17:27:39 -04:00
..
__init__.py
chat_models.py langchain-tests: allow test_serdes for packages outside the default valid namespaces (#30343) 2025-03-22 17:27:39 -04:00
embeddings.py standard-tests: show right classes in api docs (#28591) 2024-12-06 14:48:13 -08:00
tools.py standard-tests: root docstrings (#28595) 2024-12-06 15:14:52 -08:00