langchain/libs/standard-tests/langchain_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
..
integration_tests tests: release 0.3.15 (#30397) 2025-03-20 15:38:40 -04:00
unit_tests langchain-tests: allow test_serdes for packages outside the default valid namespaces (#30343) 2025-03-22 17:27:39 -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
py.typed