Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Adds views tests for Threads #93

Merged
merged 14 commits into from
Jun 19, 2024
Merged

Adds views tests for Threads #93

merged 14 commits into from
Jun 19, 2024

Conversation

amandasavluchinske
Copy link
Contributor

Partial work for #14

tests/test_views.py Outdated Show resolved Hide resolved
tests/test_views.py Outdated Show resolved Hide resolved
tests/test_views.py Outdated Show resolved Hide resolved
Copy link
Collaborator

@pamella pamella left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

tests/test_views.py Outdated Show resolved Hide resolved
Co-authored-by: Pamella Bezerra <[email protected]>
reverse("django_ai_assistant:thread_detail_update_delete", kwargs={"thread_id": thread.id})
)

assert response.status_code == HTTPStatus.NO_CONTENT
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can you please assert the deletion really happened by checking if the thread is gone?

content_type="application/json",
)

assert response.status_code == HTTPStatus.OK
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can you please assert the update really happened by checking the new name?

Copy link
Member

@fjsj fjsj left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please check comments.

@amandasavluchinske amandasavluchinske requested a review from fjsj June 19, 2024 12:29
@amandasavluchinske
Copy link
Contributor Author

@fjsj done!

@fjsj fjsj merged commit 59ff7ed into main Jun 19, 2024
6 checks passed
@fjsj fjsj deleted the td/add-tests-to-views-threads branch June 19, 2024 13:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants