[test] Make the expected value explicit in CubicWebConfigurationWithLegacyCubesTC.test_available_cubes()
This will help with the next changeset, and avoiding computation in
tests is a good thing in general.
--- a/cubicweb/test/unittest_cwconfig.py Wed Mar 13 17:21:27 2019 +0100
+++ b/cubicweb/test/unittest_cwconfig.py Thu Mar 14 16:44:53 2019 +0100
@@ -209,12 +209,16 @@
ApptestConfiguration.CUBES_PATH = []
def test_available_cubes(self):
- expected_cubes = sorted(set([
- # local cubes
- 'comment', 'email', 'file', 'forge', 'mycube',
- # test dependencies
- 'card', 'file', 'localperms', 'tag',
- ]))
+ expected_cubes = [
+ 'card',
+ 'comment',
+ 'email',
+ 'file',
+ 'forge',
+ 'localperms',
+ 'mycube',
+ 'tag',
+ ]
self.assertEqual(self.config.available_cubes(), expected_cubes)
def test_reorder_cubes_recommends(self):