Split the datagrid unit tests into per-suite modules.

Review Request #13359 — Created Oct. 22, 2023 and submitted — Latest diff uploaded

Information

Review Board
release-5.0.x

Reviewers

The reviewboard.datagrids unit tests were all contained in a single
large tests.py. Some work is being done to audit and optimize queries
for the datagrid, which will significantly grow this test suite.

To prepare for that work, this change splits up the test suite into a
file for each tested datagrid and for each tested column.

No code changes have been made to the test suites, with the exception
that two suites were merged together, as they were testing the same
datagrid.

Unit tests pass.

Diff Revision 1

This is not the most recent revision of the diff. The latest diff is revision 2. See what's changed.

orig
1
2

Commits

First Last Summary ID Author
Split the datagrid unit tests into per-suite modules.
The `reviewboard.datagrids` unit tests were all contained in a single large `tests.py`. Some work is being done to audit and optimize queries for the datagrid, which will significantly grow this test suite. To prepare for that work, this change splits up the test suite into a file for each tested datagrid and for each tested column. No code changes have been made to the test suites.
917b39fd65e62cc6d072edd78b48b32bf3c8d62b Christian Hammond
reviewboard/datagrids/tests.py
reviewboard/datagrids/tests/__init__.py
reviewboard/datagrids/tests/base.py
reviewboard/datagrids/tests/test_all_review_requests.py
reviewboard/datagrids/tests/test_dashboard.py
reviewboard/datagrids/tests/test_full_name_column.py
reviewboard/datagrids/tests/test_groups_list.py
reviewboard/datagrids/tests/test_ship_it_column.py
reviewboard/datagrids/tests/test_summary_column.py
reviewboard/datagrids/tests/test_user_page.py
reviewboard/datagrids/tests/test_username_column.py
reviewboard/datagrids/tests/test_users_list.py
Loading...