equal
deleted
inserted
replaced
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 |