Fix up some bad test data for diffviewer tests.

Review Request #12696 — Created Oct. 24, 2022 and submitted — Latest diff uploaded

Information

Review Board
release-6.x

Reviewers

We had a couple tests in the diffviewer module that were technically
including incorrect index lines for the diff being applied. We hadn't
noticed this because GNU patch is pretty good at applying patches even
when they don't quite match up perfectly, but Apple patch (which we're
not actually supporting) exposed these. This change fixes that up, just
for the sake of correctness.

Ran unit tests.

Diff Revision 2 (Latest)

orig
1
2

Commits

First Last Summary ID Author
Fix up some bad test data for diffviewer tests.
We had a couple tests in the diffviewer module that were technically including incorrect index lines for the diff being applied. We hadn't noticed this because GNU patch is pretty good at applying patches even when they don't quite match up perfectly, but Apple patch (which we're not actually supporting) exposed these. This change fixes that up, just for the sake of correctness. Testing Done: Ran unit tests.
b571d916170688470af76ecd0da4d61a6524d1fe David Trowbridge
reviewboard/diffviewer/tests/test_forms.py
Loading...