fix test + sorted json

This commit is contained in:
Fabien C. Y. Benureau 2018-08-14 17:20:23 +09:00
parent 30a7094eaf
commit 0eb069c86a
No known key found for this signature in database
GPG Key ID: C3FB5E831A249A9A
2 changed files with 85 additions and 85 deletions

View File

@ -94,7 +94,7 @@ elif mode == 'COLLECT':
def _save_collected_responses():
with open(os.path.join(_data_filepath), 'w') as fd:
json.dump(_collected_responses, fd, indent=2)
json.dump(sorted(_collected_responses), fd, indent=2)
elif mode == 'ONLINE':
def mock_requests_get(*args, **kwargs):

File diff suppressed because one or more lines are too long