Skip to content

Commit

Permalink
update test references
Browse files Browse the repository at this point in the history
  • Loading branch information
rgbkrk committed Mar 24, 2023
1 parent fe23bd9 commit 8e75747
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
8 changes: 4 additions & 4 deletions tests/test_magics.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
from unittest import mock

from genai.prompts import assist_prompt
from genai.prompts import PromptStore
from genai.context import PastAssists


Expand All @@ -27,7 +27,7 @@ def test_assist_magic(create, ip):
messages=[
{
"role": "system",
"content": assist_prompt,
"content": PromptStore.assist_prompt,
},
{
"role": "user",
Expand Down Expand Up @@ -66,7 +66,7 @@ def test_assist_magic_with_args(create, ip):
messages=[
{
"role": "system",
"content": assist_prompt,
"content": PromptStore.assist_prompt,
},
{
"role": "user",
Expand Down Expand Up @@ -108,7 +108,7 @@ def test_assist_magic_with_fresh_arg(create, ip):
messages=[
{
"role": "system",
"content": assist_prompt,
"content": PromptStore.assist_prompt,
},
# Note that there is zero other context, due to running with --fresh
{
Expand Down
2 changes: 1 addition & 1 deletion tests/test_suggestions.py
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ def test_custom_exc(create, display, ip):
assert len(kwargs["messages"]) == 3
assert kwargs["messages"][0] == {
"role": "system",
"content": error_prompt,
"content": PromptStore.exception_prompt,
}
assert kwargs["messages"][1] == {
"role": "user",
Expand Down

0 comments on commit 8e75747

Please sign in to comment.