From ed9c015d24a281ec9acc6d855972ca12f9c58a05 Mon Sep 17 00:00:00 2001 From: vbarda Date: Mon, 22 Jul 2024 20:43:28 -0400 Subject: [PATCH] remove utils --- libs/langgraph/tests/utils.py | 17 ----------------- 1 file changed, 17 deletions(-) delete mode 100644 libs/langgraph/tests/utils.py diff --git a/libs/langgraph/tests/utils.py b/libs/langgraph/tests/utils.py deleted file mode 100644 index 22e46a3ac..000000000 --- a/libs/langgraph/tests/utils.py +++ /dev/null @@ -1,17 +0,0 @@ -from langgraph.pregel import StateSnapshot - - -def assert_state_history_equal( - actual_state_history: list[StateSnapshot], - expected_state_history: list[StateSnapshot], - ignore_parent_config: bool = False, -) -> None: - assert ( - len(actual_state_history) == len(expected_state_history) - ), f"Got different lengths for state history: {len(actual_state_history)} for actual, {len(expected_state_history)} for expected" - for actual, expected in zip(actual_state_history, expected_state_history): - if ignore_parent_config: - actual = actual._replace(parent_config=None) - expected = expected._replace(parent_config=None) - - assert actual == expected