cubicweb/test/unittest_cwconfig.py
changeset 12499 2699e0f3f54a
parent 12498 1ec5b23b92e7
child 12500 ef2168f389f6
equal deleted inserted replaced
12498:1ec5b23b92e7 12499:2699e0f3f54a
   207 
   207 
   208     def tearDown(self):
   208     def tearDown(self):
   209         ApptestConfiguration.CUBES_PATH = []
   209         ApptestConfiguration.CUBES_PATH = []
   210 
   210 
   211     def test_available_cubes(self):
   211     def test_available_cubes(self):
   212         expected_cubes = sorted(set([
   212         expected_cubes = [
   213             # local cubes
   213             'card',
   214             'comment', 'email', 'file', 'forge', 'mycube',
   214             'comment',
   215             # test dependencies
   215             'email',
   216             'card', 'file', 'localperms', 'tag',
   216             'file',
   217         ]))
   217             'forge',
       
   218             'localperms',
       
   219             'mycube',
       
   220             'tag',
       
   221         ]
   218         self.assertEqual(self.config.available_cubes(), expected_cubes)
   222         self.assertEqual(self.config.available_cubes(), expected_cubes)
   219 
   223 
   220     def test_reorder_cubes_recommends(self):
   224     def test_reorder_cubes_recommends(self):
   221         from cubes.comment import __pkginfo__ as comment_pkginfo
   225         from cubes.comment import __pkginfo__ as comment_pkginfo
   222         self._test_reorder_cubes_recommends(comment_pkginfo)
   226         self._test_reorder_cubes_recommends(comment_pkginfo)