Bugs: |
|
---|
Add test: Expect 404 on invalid review access.
Review Request #3761 — Created Jan. 18, 2013 and submitted
Information | |
---|---|
nh2 | |
Review Board | |
master | |
2551 | |
Reviewers | |
reviewboard | |
Add test: Expect 404 on invalid review access. In particular, test if accessing the screenshots of a nonexistent review id fails. Fixes #2551.
Test passes with http://reviews.reviewboard.org/r/3767 applied.
Description | From | Last Updated |
---|---|---|
Lots of resources can throw these exceptions. I think it's okay not to add this comment, as now, that's just … |
|
|
Can you make sure to follow the other unit test docstring structures for this? Should be like: """Testing the GET … |
|
|
Col: 80 E501 line too long (101 > 79 characters) |
![]() |
-
-
reviewboard/webapi/resources.py (Diff revision 1) Lots of resources can throw these exceptions. I think it's okay not to add this comment, as now, that's just part of the API as documented.
-
reviewboard/webapi/tests.py (Diff revision 1) Can you make sure to follow the other unit test docstring structures for this? Should be like: """Testing the GET review-requests/<id>/screenshots/ API with an invalid review request ID""" Also, this needs to be one line. (Unit test docstrings are the one place that's okay to have over 80 chars in length)

-
This is a review from Review Bot. Tool: PEP8 Style Checker Processed Files: reviewboard/webapi/tests.py Ignored Files:
-