[9d3784]: / aiagents4pharma / talk2scholars / tests / test_state.py

Download this file

15 lines (11 with data), 384 Bytes

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
"""
Tests for state management functionality.
"""
from ..state.state_talk2scholars import replace_dict
def test_state_replace_dict():
"""Verifies state dictionary replacement works correctly"""
existing = {"key1": "value1", "key2": "value2"}
new = {"key3": "value3"}
result = replace_dict(existing, new)
assert result == new
assert isinstance(result, dict)