Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix PEP8 errors introduced by new version. #398

Merged
merged 1 commit into from
May 21, 2020
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
57 changes: 31 additions & 26 deletions pylxd/tests/mock_lxd.py
Original file line number Diff line number Diff line change
Expand Up @@ -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',
Expand Down Expand Up @@ -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$',
Expand Down Expand Up @@ -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$',
Expand Down Expand Up @@ -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$',
Expand Down