Chromium Code Reviews| 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): |