Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
StanChan03 committed Dec 27, 2024
1 parent e403921 commit 53ec040
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .github/tests/lm_tests.py
Original file line number Diff line number Diff line change
Expand Up @@ -518,8 +518,8 @@ def test_operator_cache(setup_models, model):
second_response = df.sem_map(user_instruction)
assert lm.stats.total_usage.operator_cache_hits == 1

result_1 = first_response["_map"].str.replace(r"[^a-zA-Z\s]", "", regex=True)
result_2 = second_response["_map"].str.replace(r"[^a-zA-Z\s]", "", regex=True)
result_1 = first_response[first_response["_map"].str.replace(r"[^a-zA-Z\s]", "", regex=True)]
result_2 = second_response[second_response["_map"].str.replace(r"[^a-zA-Z\s]", "", regex=True)]

pd.testing.assert_frame_equal(result_1, result_2)
pd.testing.assert_frame_equal(result_1, expected_response)
Expand Down

0 comments on commit 53ec040

Please sign in to comment.