cubicweb/test/unittest_cwconfig.py
changeset 11681 b23d58050076
parent 11631 faf279e33298
child 11710 dd5df5fe7137
equal deleted inserted replaced
11631:faf279e33298 11681:b23d58050076
    79     @patch('pkg_resources.iter_entry_points', side_effect=iter_entry_points)
    79     @patch('pkg_resources.iter_entry_points', side_effect=iter_entry_points)
    80     def test_available_cubes(self, mock_iter_entry_points):
    80     def test_available_cubes(self, mock_iter_entry_points):
    81         expected_cubes = [
    81         expected_cubes = [
    82             'card', 'comment', 'cubicweb_comment', 'cubicweb_email', 'file',
    82             'card', 'comment', 'cubicweb_comment', 'cubicweb_email', 'file',
    83             'cubicweb_file', 'cubicweb_forge', 'localperms',
    83             'cubicweb_file', 'cubicweb_forge', 'localperms',
    84             'cubicweb_mycube', 'pyramid', 'tag',
    84             'cubicweb_mycube', 'tag',
    85         ]
    85         ]
    86         self._test_available_cubes(expected_cubes)
    86         self._test_available_cubes(expected_cubes)
    87         mock_iter_entry_points.assert_called_once_with(
    87         mock_iter_entry_points.assert_called_once_with(
    88             group='cubicweb.cubes', name=None)
    88             group='cubicweb.cubes', name=None)
    89 
    89 
   166     def test_available_cubes(self):
   166     def test_available_cubes(self):
   167         expected_cubes = sorted(set([
   167         expected_cubes = sorted(set([
   168             # local cubes
   168             # local cubes
   169             'comment', 'email', 'file', 'forge', 'mycube',
   169             'comment', 'email', 'file', 'forge', 'mycube',
   170             # test dependencies
   170             # test dependencies
   171             'card', 'file', 'localperms', 'pyramid', 'tag',
   171             'card', 'file', 'localperms', 'tag',
   172         ]))
   172         ]))
   173         self._test_available_cubes(expected_cubes)
   173         self._test_available_cubes(expected_cubes)
   174 
   174 
   175     def test_reorder_cubes_recommends(self):
   175     def test_reorder_cubes_recommends(self):
   176         from cubes.comment import __pkginfo__ as comment_pkginfo
   176         from cubes.comment import __pkginfo__ as comment_pkginfo