* refactor: Improve error handling in aupdate_messages function * Update src/backend/base/langflow/memory.py Co-authored-by: Gabriel Luiz Freitas Almeida <gabriel@langflow.org> * fix(tests): updating a non-existing message adds a new message now - Updated the test name from `test_aupdate_nonexistent_message` to `test_aupdate_nonexistent_message_generates_a_new_message` for better clarity. - Modified the assertion to expect that a new message is generated when attempting to update a nonexistent message, changing the expected length of the updated messages from 0 to 1. * [autofix.ci] apply automated fixes * fix(tests): update message handling in tests for non-existent messages - Refactored tests to ensure that attempting to update a non-existent message raises a ValueError instead of creating a new message. - Updated test names and assertions for clarity and accuracy, ensuring they reflect the expected behavior when handling messages that do not exist in the database. --------- Co-authored-by: Gabriel Luiz Freitas Almeida <gabriel@langflow.org> Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com> |
||
|---|---|---|
| .. | ||
| data | ||
| integration | ||
| locust | ||
| performance | ||
| unit | ||
| .test_durations | ||
| __init__.py | ||
| api_keys.py | ||
| base.py | ||
| conftest.py | ||
| constants.py | ||