Inline text files in unit tests
Review Request #9971 — Created May 23, 2018 and submitted — Latest diff uploaded
Instead of the base test case opening and closing the same files
multiple times we have now moved the files inline with the code
resulting in a lower time complexity and a more streamline code design.
Re-ran the unit tests to make sure they behaved as expected.
reviewboard/reviews/tests/test_review_request_draft.py |
---|
reviewboard/scmtools/tests/test_git.py |
---|
reviewboard/webapi/tests/test_draft_diff.py |
---|
reviewboard/webapi/tests/test_draft_filediff.py |
---|
reviewboard/webapi/tests/test_validate_diff.py |
---|