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

Unified Diff: chrome/common/extensions/docs/server2/api_data_source_test.py

Issue 213673002: Add support for "documented_in" annotation in json api schema (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 9 months 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
Index: chrome/common/extensions/docs/server2/api_data_source_test.py
diff --git a/chrome/common/extensions/docs/server2/api_data_source_test.py b/chrome/common/extensions/docs/server2/api_data_source_test.py
index 47c4992b9b880f2e8a6397d52a22e676570238f4..71b5c205b017efee313a353203985bd77db6012c 100755
--- a/chrome/common/extensions/docs/server2/api_data_source_test.py
+++ b/chrome/common/extensions/docs/server2/api_data_source_test.py
@@ -75,6 +75,12 @@ class _FakeAPIDataSource(object):
return self._json[key]
+class _FakeNamespace(object):
+
+ def __init__(self):
+ self.documentation_options = {}
+
+
class _FakeAPIModels(object):
def __init__(self, names):
@@ -83,6 +89,9 @@ class _FakeAPIModels(object):
def GetNames(self):
return self._names
+ def GetModel(self, name):
+ return Future(value=_FakeNamespace())
ahernandez 2014/03/26 22:03:32 I needed to return a namespace object so the addit
+
class _FakeTemplateCache(object):

Powered by Google App Engine
This is Rietveld 408576698