You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
langchain/libs/core/tests/unit_tests/utils
Sergey Kozlov db6f266d97
core: improve None value processing in merge_dicts() (#17462)
- **Description:** fix `None` and `0` merging in `merge_dicts()`, add
tests.
```python
from langchain_core.utils._merge import merge_dicts
assert merge_dicts({"a": None}, {"a": 0}) == {"a": 0}
```

---------

Co-authored-by: Sergey Kozlov <sergey.kozlov@ludditelabs.io>
7 months ago
..
__init__.py Separate out langchain_core package (#13577) 10 months ago
test_function_calling.py core[patch]: handle some optional cases in tools (#16954) 8 months ago
test_html.py core[patch]: Further restrict recursive URL loader (#15559) 9 months ago
test_imports.py core[minor]: Image prompt template (#14263) 8 months ago
test_iter.py Separate out langchain_core package (#13577) 10 months ago
test_json_schema.py Update _retrieve_ref inside json_schema.py to include an isdigit() check (#14745) 9 months ago
test_utils.py core: improve None value processing in merge_dicts() (#17462) 7 months ago