cubicweb/test/unittest_cwconfig.py
changeset 11966 fe995d56c949
parent 11929 fcbd6b251d81
child 12078 82d2c1cdf0c2
equal deleted inserted replaced
11965:fb03a4113979 11966:fe995d56c949
   125                              dist=Distribution(location))
   125                              dist=Distribution(location))
   126 
   126 
   127     @patch('pkg_resources.iter_entry_points', side_effect=iter_entry_points)
   127     @patch('pkg_resources.iter_entry_points', side_effect=iter_entry_points)
   128     def test_available_cubes(self, mock_iter_entry_points):
   128     def test_available_cubes(self, mock_iter_entry_points):
   129         expected_cubes = [
   129         expected_cubes = [
   130             'card', 'comment', 'cubicweb_comment', 'cubicweb_email', 'file',
   130             'card', 'comment', 'email', 'file',
   131             'cubicweb_file', 'cubicweb_forge', 'localperms',
   131             'forge', 'localperms',
   132             'cubicweb_mycube', 'tag',
   132             'mycube', 'tag',
   133         ]
   133         ]
   134         self._test_available_cubes(expected_cubes)
   134         self._test_available_cubes(expected_cubes)
   135         mock_iter_entry_points.assert_called_once_with(
   135         mock_iter_entry_points.assert_called_once_with(
   136             group='cubicweb.cubes', name=None)
   136             group='cubicweb.cubes', name=None)
   137 
   137