Skip to content

Commit

Permalink
fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
shihanwan committed Oct 15, 2024
1 parent a61b176 commit 2536fee
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions tests/core/test_retain.py
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,7 @@ def test_commit_memory(
message=user_query,
id=id,
auto_expand=False,
auto_update=False,
ephemeral=False,
)

Expand All @@ -64,6 +65,7 @@ def test_commit_memory(
temperature=0.2,
ontology=ANY,
user_message=user_query,
updated_memory="",
)

assert mock_llm.prompt.call_count == 1
Expand Down Expand Up @@ -91,6 +93,7 @@ def test_commit_memory_with_exception(
message=user_query,
id=id,
auto_expand=False,
auto_update=False,
ephemeral=False,
)

Expand All @@ -99,6 +102,7 @@ def test_commit_memory_with_exception(
temperature=0.2,
ontology=ANY,
user_message=user_query,
updated_memory="",
)

ctmeh_prompt = call(
Expand Down Expand Up @@ -132,6 +136,7 @@ def test_commit_memory_auto_expand(
message=user_query,
id=id,
auto_expand=True,
auto_update=False,
ephemeral=False,
)

Expand All @@ -140,6 +145,7 @@ def test_commit_memory_auto_expand(
temperature=0.2,
ontology=ANY,
user_message=user_query,
updated_memory="",
)

eo_prompt = call(
Expand Down

0 comments on commit 2536fee

Please sign in to comment.