Replaced multiple get_review_request methods with an equivalent utility function
Review Request #6348 — Created Sept. 20, 2014 and submitted
There was a method called
get_review_request()
in 4 different classes with identical
bodies. They have now been replaced with a utility function inrbtools.utils.commands
.
Manually tested
attach
,close
,post
,publish
commands.It seems difficult to add new unit tests to verify the correctness of this new
change. And the existing unit tests pass even if the commands are fatally broken.
Description | From | Last Updated |
---|---|---|
'APIError' imported but unused |
reviewbot | |
'Option' imported but unused |
reviewbot | |
Blank line between this and the if statement. |
chipx86 | |
Can you add a blank line after this? |
chipx86 | |
There still is another version of this function in rbtools.hooks.common, but they differ in the exception they are raising. One … |
AS asalahli | |
Col: 1 W293 blank line contains whitespace |
reviewbot | |
Col: 1 W293 blank line contains whitespace |
reviewbot |
-
Tool: Pyflakes Processed Files: rbtools/commands/post.py rbtools/commands/attach.py rbtools/utils/review.py rbtools/commands/publish.py rbtools/commands/close.py Tool: PEP8 Style Checker Processed Files: rbtools/commands/post.py rbtools/commands/attach.py rbtools/utils/review.py rbtools/commands/publish.py rbtools/commands/close.py
-
Tool: Pyflakes Processed Files: rbtools/commands/post.py rbtools/commands/attach.py rbtools/utils/review.py rbtools/commands/publish.py rbtools/commands/close.py Tool: PEP8 Style Checker Processed Files: rbtools/commands/post.py rbtools/commands/attach.py rbtools/utils/review.py rbtools/commands/publish.py rbtools/commands/close.py
-
-
-
Tool: Pyflakes Processed Files: rbtools/commands/post.py rbtools/commands/attach.py rbtools/utils/review.py rbtools/commands/publish.py rbtools/commands/close.py Tool: PEP8 Style Checker Processed Files: rbtools/commands/post.py rbtools/commands/attach.py rbtools/utils/review.py rbtools/commands/publish.py rbtools/commands/close.py
-
Tool: Pyflakes Processed Files: rbtools/commands/post.py rbtools/commands/attach.py rbtools/utils/commands.py rbtools/commands/publish.py rbtools/commands/close.py Tool: PEP8 Style Checker Processed Files: rbtools/commands/post.py rbtools/commands/attach.py rbtools/utils/commands.py rbtools/commands/publish.py rbtools/commands/close.py