Skip to content

Commit

Permalink
Update tests/test_views.py
Browse files Browse the repository at this point in the history
Co-authored-by: Pamella Bezerra <[email protected]>
  • Loading branch information
amandasavluchinske and pamella authored Jun 19, 2024
1 parent 0567f96 commit c2c9365
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tests/test_views.py
Original file line number Diff line number Diff line change
Expand Up @@ -253,7 +253,7 @@ def test_cannot_delete_thread_if_unauthorized():
@pytest.mark.django_db(transaction=True)
def test_list_thread_messages(authenticated_client):
thread = baker.make(Thread, created_by=User.objects.first())
use_cases.create_thread_message_as_user(thread.id, "Hello", User.objects.first())
use_cases.create_thread_message_as_user(thread.id, "Hello", thread.created_by)
response = authenticated_client.get(
reverse("django_ai_assistant:messages_list_create", kwargs={"thread_id": thread.id})
)
Expand Down

0 comments on commit c2c9365

Please sign in to comment.