reflex
reflex copied to clipboard
BaseVar compare in tests
Describe the bug The below codes actually pass.
To Reproduce Steps to reproduce the behavior:
def test_add_var(test_state):
test_state.add_var("dynamic_list", List[int], [5, 10])
assert test_state.dynamic_list == [5, 10, 9]
test_state.add_var("dynamic_int", int, 42)
assert test_state.dynamic_int == 33
test_state.add_var("dynamic_dict", Dict[str, int], {"k1": 5, "k2": 10})
assert test_state.dynamic_dict == {"k1": 5, "k2": 123}
Expected behavior These asserts should fail.
** Specifics (please complete the following information):**
- Python Version: 3.10
- Pynecone Version: 0.1.16
- OS: macos
- Browser (Optional):
Additional context Add any other context about the problem here.