Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1799)

Unified Diff: appengine/findit/util_scripts/remote_api.py

Issue 2435863003: [Findit] Add local git parsers. (Closed)
Patch Set: Rebase. Created 4 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « appengine/findit/util_scripts/iterator.py ('k') | appengine/findit/util_scripts/sample_remote_api_query.py » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: appengine/findit/util_scripts/remote_api.py
diff --git a/appengine/findit/util_scripts/remote_api.py b/appengine/findit/util_scripts/remote_api.py
index 6f5ab3d5d49d6343cf028bbf9532fdb71d732b13..821bb99b6484a942ca9d705a786be54fcbcfce81 100644
--- a/appengine/findit/util_scripts/remote_api.py
+++ b/appengine/findit/util_scripts/remote_api.py
@@ -14,7 +14,7 @@ For detail on usage of Remote API, please refer to:
import socket
-import script_util
+import script_util # pylint: disable=W
script_util.SetUpSystemPaths()
from google.appengine.api import urlfetch
@@ -22,13 +22,16 @@ from google.appengine.ext import ndb
from google.appengine.ext.remote_api import remote_api_stub
-def SetTimeoutForUrlOperations(url_blocking_operations_timeout=600):
+# TODO(crbug.com/662540): Add unittests.
+def SetTimeoutForUrlOperations(
+ url_blocking_operations_timeout=600): # pragma: no cover
"""Set timeout for url operations (socket, appengine db)."""
socket.setdefaulttimeout(url_blocking_operations_timeout)
urlfetch.set_default_fetch_deadline(url_blocking_operations_timeout)
-def EnableRemoteApi(app_id='findit-for-me'):
+# TODO(crbug.com/662540): Add unittests.
+def EnableRemoteApi(app_id='findit-for-me'): # pragma: no cover
"""Enable appengine services through remote API.
Args:
« no previous file with comments | « appengine/findit/util_scripts/iterator.py ('k') | appengine/findit/util_scripts/sample_remote_api_query.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698