allow no-op case when modifying deprecated credentials

This commit is contained in:
AlanCoding
2018-06-06 15:22:01 -04:00
parent e480639699
commit dde706b61f
4 changed files with 74 additions and 20 deletions

View File

@@ -553,7 +553,9 @@ def _request(verb):
response.data[key] = str(value)
except Exception:
response.data = data_copy
assert response.status_code == expect
assert response.status_code == expect, 'Response data: {}'.format(
getattr(response, 'data', None)
)
if hasattr(response, 'render'):
response.render()
__SWAGGER_REQUESTS__.setdefault(request.path, {})[