Allow timestamp to be set for comment models in test cases

Review Request #12394 — Created June 21, 2022 and submitted — Latest diff uploaded

Information

Review Board
release-5.0.x

Reviewers

The create methods for comments in reviewboard.testing.TestCase does not
properly set the timestamp when a timestamp argument is passed. This is
because the timestamp is being overriden when when the comment object is saved.
This change allows reviewboard.testing.TestCase to properly set the timestamp
when a timestamp argument is passed.

Ran all unit tests in reviewboard.webapi.tests, which make use of the create
comment methods.

Changes between revision 1 and 2

orig
1
2

Commits

Summary ID Author
Allow timestamp to be set for comment models in test cases
7cfec64995c2d200b77ac99a7de46f4fc6d878e6 Michelle Aubin
Allow timestamp to be set for comment models in test cases
8c3938b660d46ba386be3be8fd4d269686b4f826 Michelle Aubin
reviewboard/testing/testcase.py
Loading...