Skip to content

Commit

Permalink
more renames
Browse files Browse the repository at this point in the history
  • Loading branch information
pieroit committed Feb 20, 2025
1 parent 10e1a36 commit f68e8d0
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions core/tests/looking_glass/test_stray_cat.py
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ def test_stray_nlp(stray_cat):
def test_stray_call_with_text(stray_cat):
msg = {"text": "Where do I go?", "user_id": "Alice"}

reply = stray.__call__(msg)
reply = stray_cat.__call__(msg)

assert isinstance(reply, CatMessage)
assert "You did not configure" in reply.text
Expand Down Expand Up @@ -92,7 +92,7 @@ def test_stray_fast_reply_hook(stray_cat):
fast_reply_msg = "This is a fast reply"

def fast_reply_hook(fast_reply: dict, cat):
if user_msg in cat.working_memory.user_message_json.text:
if user_msg in stray_cat.working_memory.user_message_json.text:
fast_reply["output"] = fast_reply_msg
return fast_reply

Expand Down
2 changes: 1 addition & 1 deletion core/tests/mocks/mock_plugin/mock_endpoint.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ def test_endpoint_prefix():

@endpoint.get(path="/crud", prefix="/tests", tags=["Tests"])
def test_get(cat=check_permissions(AuthResource.PLUGINS, AuthPermission.LIST)):
return {"result":"ok", "stray_user_id":stray.user_id}
return {"result":"ok", "user_id":cat.user_id}

@endpoint.post(path="/crud", prefix="/tests", tags=["Tests"])
def test_post(item: Item):
Expand Down
2 changes: 1 addition & 1 deletion core/tests/routes/test_custom_endpoints.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ def test_custom_endpoint_get(client, just_installed_plugin):
response = client.get("/tests/crud")
assert response.status_code == 200
assert response.json()["result"] == "ok"
assert response.json()["stray_user_id"] == "user"
assert response.json()["user_id"] == "user"


def test_custom_endpoint_post(client, just_installed_plugin):
Expand Down

0 comments on commit f68e8d0

Please sign in to comment.