[test] Make the expected value explicit in CubicWebConfigurationWithLegacyCubesTC.test_available_cubes()
authorDenis Laxalde <denis.laxalde@logilab.fr>
Thu, 14 Mar 2019 16:44:53 +0100
changeset 12499 2699e0f3f54a
parent 12498 1ec5b23b92e7
child 12500 ef2168f389f6
[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.
cubicweb/test/unittest_cwconfig.py
--- 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):