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

Side by Side Diff: chrome/common/extensions/docs/server2/sidenav_data_source_test.py

Issue 14218004: Devserver: only populate data during cron jobs, meaning all data from instances (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fix integration test Created 7 years, 8 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 #!/usr/bin/env python 1 #!/usr/bin/env python
2 # Copyright (c) 2012 The Chromium Authors. All rights reserved. 2 # Copyright (c) 2012 The Chromium Authors. All rights reserved.
3 # Use of this source code is governed by a BSD-style license that can be 3 # Use of this source code is governed by a BSD-style license that can be
4 # found in the LICENSE file. 4 # found in the LICENSE file.
5 5
6 import os 6 import os
7 import sys 7 import sys
8 import unittest 8 import unittest
9 9
10 from compiled_file_system import CompiledFileSystem 10 from compiled_file_system import CompiledFileSystem
11 from in_memory_object_store import InMemoryObjectStore
12 from local_file_system import LocalFileSystem 11 from local_file_system import LocalFileSystem
13 from object_store_creator import ObjectStoreCreator 12 from object_store_creator import ObjectStoreCreator
14 from sidenav_data_source import SidenavDataSource 13 from sidenav_data_source import SidenavDataSource
15 14
16 class SamplesDataSourceTest(unittest.TestCase): 15 class SamplesDataSourceTest(unittest.TestCase):
17 def setUp(self): 16 def setUp(self):
18 self._base_path = os.path.join(sys.path[0], 17 self._base_path = os.path.join(sys.path[0],
19 'test_data', 18 'test_data',
20 'sidenav_data_source') 19 'sidenav_data_source')
21 self._compiled_fs_factory = CompiledFileSystem.Factory( 20 self._compiled_fs_factory = CompiledFileSystem.Factory(
(...skipping 25 matching lines...) Expand all
47 if next_item['title'] == 'B': 46 if next_item['title'] == 'B':
48 self.assertTrue(next_item.get('selected', False)) 47 self.assertTrue(next_item.get('selected', False))
49 return 48 return
50 # If we didn't return already, we should fail. 49 # If we didn't return already, we should fail.
51 self.fail() 50 self.fail()
52 51
53 52
54 53
55 if __name__ == '__main__': 54 if __name__ == '__main__':
56 unittest.main() 55 unittest.main()
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698