Add the beginnings of a testing framework for the Review Bot worker.
Review Request #11507 — Created March 10, 2021 and submitted
Review Bot never had a real testing framework, leaving us to manually
test any affected functionality. This has been fine historically, as
tools, once written, have generally continued to work fine. However, a
regression was recently found, and it won't be the last, so it's a good
time to finally begin writing tests.This change introduces a new
reviewbot.testingmodule, with a base
TestCasethat containing helpers for creating common objects and diff
data.It also includes a test runner, and a
dev-requirements.txtfor
installing the necessary dependencies.There are no unit tests in this change, but some tests will soon be
provided in another change.
Tested with some upcoming unit tests, making use of all the new
functionality. Tests passed successfully.
| Summary | ID |
|---|---|
| fb45d87b229b847e39b626e0533c03913698d5ad |
- Change Summary:
-
- Set the
maxDiffsize to 10000 for object comparison diffing. - Added a
shortDescriptionfunction to let us wrap docstrings.
- Set the
- Commits:
-
Summary ID 59d46172fcaefa0278d48c88df040a28640cf66d fb45d87b229b847e39b626e0533c03913698d5ad