Index: tests/crowdin_mock_api.py |
=================================================================== |
--- a/tests/crowdin_mock_api.py |
+++ b/tests/crowdin_mock_api.py |
@@ -1,20 +1,14 @@ |
from flask import Flask, send_from_directory, jsonify, request |
app = Flask(__name__) |
app.request_log = [] |
-@app.before_request |
-def log_request_info(): |
- log = (request.url, str(request.get_data())) |
- app.request_log.append(log) |
- |
- |
@app.route('/api/project/test/info', methods=['GET']) |
def info(): |
return jsonify( |
{ |
'languages': [ |
{ |
'name': 'German', |
'code': 'de', |
@@ -24,26 +18,25 @@ |
}, |
{ |
'name': 'English', |
'code': 'en', |
'can_translate': 1, |
'can_approve': 1, |
}, |
- |
], |
'files': [ |
{ |
'node_type': 'directory', |
'name': 'en', |
'files': [ |
{ |
'node_type': 'file', |
- 'name': 'translate.json', |
+ 'name': 'global.json', |
'created': '2016-09-26 08:30:07', |
'last_updated': '2016-09-26 08:30:08', |
'last_accessed': None, |
'last_revision': '1' |
}, |
] |
}, |
{ |