[lxc-devel] [pylxd/master] Fix PEP8 errors introduced by new version.
ltrager on Github
lxc-bot at linuxcontainers.org
Wed May 20 20:51:51 UTC 2020
A non-text attachment was scrubbed...
Name: not available
Type: text/x-mailbox
Size: 354 bytes
Desc: not available
URL: <http://lists.linuxcontainers.org/pipermail/lxc-devel/attachments/20200520/a6b33829/attachment.bin>
-------------- next part --------------
From 31655ce080824926368bb11d6530841a54480bfb Mon Sep 17 00:00:00 2001
From: Lee Trager <lee.trager at canonical.com>
Date: Wed, 20 May 2020 20:51:10 +0000
Subject: [PATCH] Fix PEP8 errors introduced by new version.
Signed-off-by: Lee Trager <lee.trager at canonical.com>
---
pylxd/tests/mock_lxd.py | 57 ++++++++++++++++++++++-------------------
1 file changed, 31 insertions(+), 26 deletions(-)
diff --git a/pylxd/tests/mock_lxd.py b/pylxd/tests/mock_lxd.py
index dedc6ec4..2f877410 100644
--- a/pylxd/tests/mock_lxd.py
+++ b/pylxd/tests/mock_lxd.py
@@ -208,23 +208,25 @@ def snapshot_DELETE(request, context):
'metadata': {
"server_name": "an-member",
"enabled": 'true',
- "member_config": [{
- "entity": "storage-pool",
- "name": "local",
- "key": "source",
- "value": "",
- "description":
- "\"source\" property for storage pool \"local\""
- },
- {
- "entity": "storage-pool",
- "name": "local",
- "key": "volatile.initial_source",
- "value": "",
- "description":
- "\"volatile.initial_source\" property for"
- " storage pool \"local\""
- }]
+ "member_config": [
+ {
+ "entity": "storage-pool",
+ "name": "local",
+ "key": "source",
+ "value": "",
+ "description":
+ "\"source\" property for storage pool \"local\""
+ },
+ {
+ "entity": "storage-pool",
+ "name": "local",
+ "key": "volatile.initial_source",
+ "value": "",
+ "description":
+ "\"volatile.initial_source\" property for"
+ " storage pool \"local\""
+ },
+ ]
}
}),
'method': 'GET',
@@ -333,9 +335,10 @@ def snapshot_DELETE(request, context):
'stateful': False,
'status': "Running",
'status_code': 103,
- 'unsupportedbypylxd': "This attribute is not supported by "\
- "pylxd. We want to test whether the mere presence of it "\
- "makes it crash."
+ 'unsupportedbypylxd': (
+ "This attribute is not supported by "
+ "pylxd. We want to test whether the mere presence of it "
+ "makes it crash.")
}},
'method': 'GET',
'url': r'^http://pylxd2.test/1.0/instances/an-instance$',
@@ -381,9 +384,10 @@ def snapshot_DELETE(request, context):
'stateful': False,
'status': "Running",
'status_code': 103,
- 'unsupportedbypylxd': "This attribute is not supported by "\
- "pylxd. We want to test whether the mere presence of it "\
- "makes it crash."
+ 'unsupportedbypylxd': (
+ "This attribute is not supported by "
+ "pylxd. We want to test whether the mere presence of it "
+ "makes it crash.")
}},
'method': 'GET',
'url': r'^http://pylxd.test/1.0/instances/an-instance$',
@@ -437,9 +441,10 @@ def snapshot_DELETE(request, context):
'location': "an-remote",
'status': "Running",
'status_code': 103,
- 'unsupportedbypylxd': "This attribute is not supported by "\
- "pylxd. We want to test whether the mere presence of it "\
- "makes it crash."
+ 'unsupportedbypylxd': (
+ "This attribute is not supported by "
+ "pylxd. We want to test whether the mere presence of it "
+ "makes it crash.")
}},
'method': 'GET',
'url': r'^http://pylxd.test/1.0/instances/an-new-remote-instance$',
More information about the lxc-devel
mailing list