Correctly return line counts in the FileDiffCollectionMixin

Review Request #10099 — Created July 24, 2018 and submitted — Latest diff uploaded

brennie
Review Board
release-4.0.x
10094
b2f5893...
reviewboard

The FileDiffCollectionMixin incorrectly assumed that counts would
always be integers. However, before chunks are generated, some line
counts may be None. This patch works around that limitation and
returns the correct result for that case. Unit tests have been added to
test this behaviour.

Ran unit tests.

Loading...