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

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

Issue 10804036: Extensions Docs Server: Internationalized samples (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: encodings Created 8 years, 5 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/template_data_source_test.py
diff --git a/chrome/common/extensions/docs/server2/template_data_source_test.py b/chrome/common/extensions/docs/server2/template_data_source_test.py
index ed96e205c48a0fa20e167f5311b9d19eb551b520..93ed4d1e1f3b8ed16395e7b5dcbda5acbce3a51a 100755
--- a/chrome/common/extensions/docs/server2/template_data_source_test.py
+++ b/chrome/common/extensions/docs/server2/template_data_source_test.py
@@ -13,16 +13,19 @@ from template_data_source import TemplateDataSource
from third_party.handlebar import Handlebar
class _FakeRequest(object):
- def __init__(self):
pass
+class _FakeSamplesDataSource(object):
+ def Create(self, request):
+ return {}
+
class TemplateDataSourceTest(unittest.TestCase):
def setUp(self):
self._base_path = os.path.join('test_data', 'template_data_source')
self._fake_api_data_source = {}
self._fake_api_list_data_source = {}
self._fake_intro_data_source = {}
- self._fake_samples_data_source = {}
+ self._fake_samples_data_source = _FakeSamplesDataSource()
def _ReadLocalFile(self, filename):
with open(os.path.join(self._base_path, filename), 'r') as f:

Powered by Google App Engine
This is Rietveld 408576698