Commit 7230f4bf authored by Denis Laxalde's avatar Denis Laxalde
Browse files

[test] Inline _test_available_cubes() method in cwconfig tests

Improves readability.
parent ad995a9905f9
......@@ -128,13 +128,10 @@ class CubicWebConfigurationTC(BaseTestCase):
'cubicweb_file', 'cubicweb_forge', 'localperms',
'cubicweb_mycube', 'tag',
]
self._test_available_cubes(expected_cubes)
self.assertEqual(self.config.available_cubes(), expected_cubes)
mock_iter_entry_points.assert_called_once_with(
group='cubicweb.cubes', name=None)
def _test_available_cubes(self, expected_cubes):
self.assertEqual(self.config.available_cubes(), expected_cubes)
def test_reorder_cubes(self):
# forge depends on email and file and comment
# email depends on file
......@@ -218,7 +215,7 @@ class CubicWebConfigurationWithLegacyCubesTC(CubicWebConfigurationTC):
# test dependencies
'card', 'file', 'localperms', 'tag',
]))
self._test_available_cubes(expected_cubes)
self.assertEqual(self.config.available_cubes(), expected_cubes)
def test_reorder_cubes_recommends(self):
from cubes.comment import __pkginfo__ as comment_pkginfo
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment