Split the reviewboard.search unit tests into multiple files.

Review Request #11346 — Created Dec. 23, 2020 and submitted — Latest diff uploaded

Information

Review Board
release-4.0.x

Reviewers

reviewboard.search.tests was getting a bit hard to manage, and new
tests for new classes will soon be written. To prepare for this, this
change splits the test suite into 3 new files.

The test code is largely unchanged, with a few exceptions:

  1. Missing/broken docstrings were added/corrected.
  2. Some Django 1.6-specific code has been removed.
  3. A KGB call has been updated for modern best practices.

Unit tests pass on Python 2.7 and 3.6 through 3.9.

Ensured I didn't have a stale tests.pyc or __pycache__ around.

Commits

Files