| |
@@ -13,11 +13,11 @@
|
| |
|
| |
assert r.status_code == 200
|
| |
assert len([l for l in r.get_data(as_text=True).splitlines()
|
| |
- if l.startswith('# TYPE messaging_') and
|
| |
- l.endswith(' counter')]) == 4
|
| |
+ if l.startswith('# TYPE messaging_')
|
| |
+ and l.endswith(' counter')]) == 4
|
| |
assert len([l for l in r.get_data(as_text=True).splitlines()
|
| |
- if l.startswith('# TYPE db_') and
|
| |
- l.endswith(' counter')]) == 4
|
| |
+ if l.startswith('# TYPE db_')
|
| |
+ and l.endswith(' counter')]) == 4
|
| |
|
| |
|
| |
def test_standalone_metrics_server_disabled_by_default():
|
| |
@@ -32,8 +32,8 @@
|
| |
r = requests.get('http://127.0.0.1:10040/metrics')
|
| |
|
| |
assert len([l for l in r.text.splitlines()
|
| |
- if l.startswith('# TYPE messaging_') and
|
| |
- l.endswith(' counter')]) == 4
|
| |
+ if l.startswith('# TYPE messaging_')
|
| |
+ and l.endswith(' counter')]) == 4
|
| |
assert len([l for l in r.text.splitlines()
|
| |
- if l.startswith('# TYPE db_') and
|
| |
- l.endswith(' counter')]) == 4
|
| |
+ if l.startswith('# TYPE db_')
|
| |
+ and l.endswith(' counter')]) == 4
|
| |
After upgrading C3I Jenkins slave pod from Fedora 28 to 29,
C3I pipeline builds for waiverdb fails with a Flake8 warning:
W504 line break after binary operator.
This happens because of a updated PEP 8 rule, which
recommends that line breaks should occur before the binary operator
because it keeps all operators aligned.
However both W503 and W504 are enforced when all warnings are configured.
This pull-request eliminates the warning by following the new rule and ignoring W503.