Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
brockhaywood committed Jan 4, 2019
1 parent e1642b3 commit 8a1562e
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
2 changes: 1 addition & 1 deletion sphinxcontrib/openapi/openapi20.py
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ def _httpresource(endpoint, method, properties):
yield ''

# print response status codes
for status, response in responses.items():
for status, response in sorted(responses.items()):
yield '{indent}:status {status}:'.format(**locals())
for line in response.get('description', '').splitlines():
yield '{indent}{indent}{line}'.format(**locals())
Expand Down
7 changes: 5 additions & 2 deletions tests/test_openapi.py
Original file line number Diff line number Diff line change
Expand Up @@ -378,8 +378,11 @@ def test_json_in_out(self):
''').lstrip()
# import pdb;pdb.set_trace()

text = text.replace(' ', '')
text2 = text2.replace(' ', '')
# text = text.replace(' ', '')
# text2 = text2.replace(' ', '')

print(text)
print(text2)

assert text == text2

Expand Down

0 comments on commit 8a1562e

Please sign in to comment.