Add unit tests for the review request view.

Review Request #14314 — Created Jan. 30, 2025 and updated — Latest diff uploaded

Information

Review Board
release-7.1.x

Reviewers

A recent change introduced unit tests for ReviewRequestPageData, which
backs the review request page. This change fleshes out our testing
further, adding tests for the view, which encompasses all the stages of
ReviewRequestPageData along with other page components (actions,
JavaScript setup, etc.).

Review requests bound to repositories now use hosting services, which
ensures a bit more test coverage (and unveils issues surrounding
re-querying of repositories and other objects).

This gives a more comprehensive view of where database queries need to
be optimized.

Unit tests pass.

Diff Revision 2 (Latest)

orig
1
2

Commits

First Last Summary ID Author
Add unit tests for the review request view.
A recent change introduced unit tests for `ReviewRequestPageData`, which backs the review request page. This change fleshes out our testing further, adding tests for the view, which encompasses all the stages of `ReviewRequestPageData` along with other page components (actions, JavaScript setup, etc.). Review requests bound to repositories now use hosting services, which ensures a bit more test coverage (and unveils issues surrounding re-querying of repositories and other objects). This gives a more comprehensive view of where database queries need to be optimized.
4c8d997525241e245c3069724036c9f4e4d4bdf7 Christian Hammond
reviewboard/reviews/tests/test_review_request_detail_view.py
Loading...