Skip to content

Commit

Permalink
Remove old test
Browse files Browse the repository at this point in the history
  • Loading branch information
scott-cohere committed Jun 19, 2024
1 parent 0d1a891 commit 9b9f845
Showing 1 changed file with 0 additions and 11 deletions.
11 changes: 0 additions & 11 deletions src/backend/tests/crud/test_conversation.py
Original file line number Diff line number Diff line change
Expand Up @@ -35,17 +35,6 @@ def test_get_conversation(session, user):
assert conversation.id == "1"


def test_get_conversation_with_agent_id(session, user):
agent = get_factory("Agent", session).create(name="test agent", user_id=user.id)
_ = get_factory("Conversation", session).create(
id="1", title="Hello, World!", user_id=user.id, agent_id=agent.id
)

conversation = conversation_crud.get_conversation(session, "1", user.id, "agent_id")
assert conversation.title == "Hello, World!"
assert conversation.id == "1"


def test_fail_get_nonexistent_conversation(session, user):
conversation = conversation_crud.get_conversation(session, "123", user_id=user.id)
assert conversation is None
Expand Down

0 comments on commit 9b9f845

Please sign in to comment.