Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code

Unified Diff: tests/crowdin_mock_api.py

Issue 29647615: Noissue - Refactor translation tests to validate sync (Closed)
Patch Set: Created Dec. 22, 2017, 3:43 p.m.
Use n/p to move between diff chunks; N/P to move between comments.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | tests/test_translations.py » ('j') | tests/test_translations.py » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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'
},
]
},
{
« no previous file with comments | « no previous file | tests/test_translations.py » ('j') | tests/test_translations.py » ('J')

Powered by Google App Engine
This is Rietveld