mirror of
https://github.com/bytedance/deer-flow.git
synced 2026-05-21 15:36:48 +00:00
Apply suggestions from code review
Co-authored-by: Copilot Autofix powered by AI <223894421+github-code-quality[bot]@users.noreply.github.com> Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
This commit is contained in:
@@ -45,7 +45,8 @@ class TestGetThreadId:
|
||||
|
||||
def test_returns_none_when_get_config_raises_runtime_error(self):
|
||||
runtime = SimpleNamespace(context=None, config={})
|
||||
assert get_thread_id(runtime) is None
|
||||
with patch("langgraph.config.get_config", side_effect=RuntimeError):
|
||||
assert get_thread_id(runtime) is None
|
||||
|
||||
def test_handles_object_without_context_or_config(self):
|
||||
runtime = SimpleNamespace()
|
||||
|
||||
Reference in New Issue
Block a user