pep8 error in masakari-monitors
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
masakari-monitors |
Invalid
|
Undecided
|
Unassigned |
Bug Description
./masakarimonit
elif(
^
./masakarimonit
"""This class tests the hacking checks in masakarimonitor
passing strings to the check methods like the pycodestyle/flake8 parser
would.
The parser loops over each line in the file and then passes the
parameters to the check method. The parameter names in the check method
dictate what type of object is passed to the check method.
The parameter types are::
- Multi-line statements converted to a single line.
- Stripped left and right.
- Contents of strings replaced with "xxx" of same length.
- Comments removed.
lines: a list of the raw lines from the input file
tokens: the tokens that contribute to this logical line
filename: Path of the file being run through pycodestyle
When running a test on a check method the return will be False/None if
there is no violation in the sample input. If there is an error a tuple is
returned with a position in the line, and a message. So to check the result
just assertTrue if the check is expected to fail and assertFalse if it
should pass.
"""
Changed in masakari-monitors: | |
assignee: | nobody → LeeChunghwan (chung00lee) |
Changed in masakari-monitors: | |
status: | In Progress → Invalid |
assignee: | LeeChunghwan (chung00lee) → nobody |
Fix proposed to branch: master /review. opendev. org/c/openstack /masakari- monitors/ +/895775
Review: https:/