Serialize the status field in the FileDiff API
Review Request #8828 — Created March 20, 2017 and submitted
The
FileDiff
API has historically not included thestatus
field,
which indicates if the file was newly created, moved, etc. in the
change. We now serialize it as a human readable string in the API.Additionally basic unit tests have been added for the
FileDiff
API, as
they did not previously exist.
Ran unit tests.
-
Tool: Pyflakes Processed Files: reviewboard/diffviewer/models.py reviewboard/webapi/resources/filediff.py reviewboard/webapi/tests/test_filediff.py Tool: PEP8 Style Checker Processed Files: reviewboard/diffviewer/models.py reviewboard/webapi/resources/filediff.py reviewboard/webapi/tests/test_filediff.py
-
Tool: PEP8 Style Checker Processed Files: reviewboard/diffviewer/models.py reviewboard/webapi/resources/filediff.py reviewboard/webapi/tests/test_filediff.py Tool: Pyflakes Processed Files: reviewboard/diffviewer/models.py reviewboard/webapi/resources/filediff.py reviewboard/webapi/tests/test_filediff.py