Add test to verify that static files exist
Review Request #8603 — Created Jan. 7, 2017 and submitted
The test verifies that all files referenced in staticbundles.py exists.
Remove reference to:
* rb/js/admin/models/supportContractModel.js: reference, but no file, added in
6a857664
* rb/js/views/fileAttachmentCommentBlockView.js: reference, but no file, added
in 7b3a4b6d
* rb/js/diffviewer.js: file removed in 05ba1ae3
* rb/js/reviews.js: file removed in d7cdfa6d
Creating test database for alias 'default'... #888 Testing that all static javascript files exist ... ok #889 Testing that all static stylesheet files exist ... ok ---------------------------------------------------------------------- Ran 2 tests in 1.373s OK
Description | From | Last Updated |
---|---|---|
Add a file level docstring indicating what this file is. The first import should be from __future__ import unicode_literals. |
|
|
Missing a class docstring. |
|
|
Missing method docstring. Private method names in testcases should be prefixed with an underscore. |
|
|
Missing method docstring. |
|
|
Missing method docstring. |
|
|
There should be a blank line between these; imports go into 3 groups: stdlib, "third party" (including djblets), and "this … |
|
|
Blank line between these two. |
|
|
Nicer formatting might be: static_path = os.path.join('reviewboard', 'static', path) if not os.path.exists(static_path): missing.add(path) |
|
|
Our testcase docstrings are all of the format "Testing ...". They also shouldn't contain the trailing period, since the test … |
|
|
Same here. |
|
|
Blank line between these two, please. |
|
Description: |
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
Testing Done: |
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Commit: |
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Diff: |
Revision 2 (+25 -4) |

-
Tool: Pyflakes Processed Files: reviewboard/tests.py reviewboard/staticbundles.py Tool: PEP8 Style Checker Processed Files: reviewboard/tests.py reviewboard/staticbundles.py
-
-
reviewboard/tests.py (Diff revision 2) Add a file level docstring indicating what this file is.
The first import should be
from __future__ import unicode_literals
. -
-
reviewboard/tests.py (Diff revision 2) Missing method docstring.
Private method names in testcases should be prefixed with an underscore.
-
-
Change Summary:
Fixing review comments and minor refactoring of the test.
Testing Done: |
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
Commit: |
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Diff: |
Revision 3 (+47 -4) |

-
Tool: Pyflakes Processed Files: reviewboard/tests.py reviewboard/staticbundles.py Tool: PEP8 Style Checker Processed Files: reviewboard/tests.py reviewboard/staticbundles.py
-
-
reviewboard/tests.py (Diff revision 3) There should be a blank line between these; imports go into 3 groups: stdlib, "third party" (including djblets), and "this module".
-
-
reviewboard/tests.py (Diff revision 3) Nicer formatting might be:
static_path = os.path.join('reviewboard', 'static', path) if not os.path.exists(static_path): missing.add(path)
-
reviewboard/tests.py (Diff revision 3) Our testcase docstrings are all of the format "Testing ...". They also shouldn't contain the trailing period, since the test runner adds an ellipsis.
Proper grammar should also be "all static javascript files exist"
-
Testing Done: |
|
|||||||||||||||||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
Commit: |
|
|||||||||||||||||||||||||||||||||||||||
Diff: |
Revision 4 (+49 -4) |

-
Tool: Pyflakes Processed Files: reviewboard/tests.py reviewboard/staticbundles.py Tool: PEP8 Style Checker Processed Files: reviewboard/tests.py reviewboard/staticbundles.py
Change Summary:
blank_line++
Commit: |
|
||||
---|---|---|---|---|---|
Diff: |
Revision 5 (+50 -4) |

-
Tool: Pyflakes Processed Files: reviewboard/tests.py reviewboard/staticbundles.py Tool: PEP8 Style Checker Processed Files: reviewboard/tests.py reviewboard/staticbundles.py