# HG changeset patch # User Denis Laxalde # Date 1552578293 -3600 # Node ID 2699e0f3f54a0fbde5d5820d8a35922988e7ea3c # Parent 1ec5b23b92e7e2a2a1847202f31e1a43d185f3f3 [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. diff -r 1ec5b23b92e7 -r 2699e0f3f54a 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):