summaryrefslogtreecommitdiff
path: root/osprofiler/tests/unit/drivers/test_redis_driver.py
diff options
context:
space:
mode:
authorAndreas Jaeger <aj@suse.com>2020-06-02 17:07:50 +0200
committerAndreas Jaeger <aj@suse.com>2020-06-02 17:07:50 +0200
commit1d77244f18bd69308cce1de8b182eb10c8106aa9 (patch)
tree0f11baa429314178a55d85ecdbb6828276459b8d /osprofiler/tests/unit/drivers/test_redis_driver.py
parentc4c57a168028465b86de4ead0d5662943c6021b8 (diff)
downloadosprofiler-1d77244f18bd69308cce1de8b182eb10c8106aa9.tar.gz
Fix pep8 failures
With an updated flake8, we get some new warnings. Update hacking directly to version 3.1.0 and fix the problems found. Note that before this change, flake8 used the default "ignore" list, this now adds a new ignore list. Change-Id: Iccbf4f30eb4e542d3824b7782f43eacda29c5a90
Diffstat (limited to 'osprofiler/tests/unit/drivers/test_redis_driver.py')
-rw-r--r--osprofiler/tests/unit/drivers/test_redis_driver.py9
1 files changed, 4 insertions, 5 deletions
diff --git a/osprofiler/tests/unit/drivers/test_redis_driver.py b/osprofiler/tests/unit/drivers/test_redis_driver.py
index 2e7a8e0..b8d3e5e 100644
--- a/osprofiler/tests/unit/drivers/test_redis_driver.py
+++ b/osprofiler/tests/unit/drivers/test_redis_driver.py
@@ -146,7 +146,7 @@ class RedisParserTestCase(test.TestCase):
"db": {
"params": {
- },
+ },
"statement": "SELECT 1"
},
"service": None
@@ -195,8 +195,8 @@ class RedisParserTestCase(test.TestCase):
"parent_id": "7253ca8c-33b3-4f84-b4f1-f5a4311ddfa4",
"base_id": "7253ca8c-33b3-4f84-b4f1-f5a4311ddfa4"
}]
- results = {result["base_id"] + "_" + result["trace_id"] +
- "_" + result["timestamp"]: result
+ results = {result["base_id"] + "_" + result["trace_id"]
+ + "_" + result["timestamp"]: result
for result in result_elements}
expected = {"children": [{"children": [{
@@ -311,8 +311,7 @@ class RedisParserTestCase(test.TestCase):
"finished": 88,
"name": "total",
"started": 0,
- "last_trace_started": 88
- },
+ "last_trace_started": 88},
"stats": {"db": {"count": 1, "duration": 20},
"wsgi": {"count": 3, "duration": 0}}}