Skip to content

Commit

Permalink
small change in messages test
Browse files Browse the repository at this point in the history
  • Loading branch information
BoBer78 committed Dec 19, 2024
1 parent 73c32cc commit 5e948de
Showing 1 changed file with 2 additions and 7 deletions.
9 changes: 2 additions & 7 deletions swarm_copy_tests/app/routers/test_threads.py
Original file line number Diff line number Diff line change
Expand Up @@ -106,6 +106,8 @@ async def test_get_messages(
"/threads/?virtual_lab_id=test_vlab&project_id=test_project"
).json()
thread_id = create_output["thread_id"]
empty_messages = app_client.get(f"/threads/{thread_id}").json()
assert empty_messages == []

# Fill the thread
app_client.post(
Expand All @@ -114,13 +116,6 @@ async def test_get_messages(
headers={"x-virtual-lab-id": "test_vlab", "x-project-id": "test_project"},
)

create_output = app_client.post(
"/threads/?virtual_lab_id=test_vlab&project_id=test_project"
).json()
empty_thread_id = create_output["thread_id"]
empty_messages = app_client.get(f"/threads/{empty_thread_id}").json()
assert empty_messages == []

# Get the messages of the thread
messages = app_client.get(f"/threads/{thread_id}").json()

Expand Down

0 comments on commit 5e948de

Please sign in to comment.