[test] Remove upper bound for cubicweb-localperms
authorDenis Laxalde <denis.laxalde@logilab.fr>
Thu, 14 Mar 2019 14:38:55 +0100
changeset 12500 ef2168f389f6
parent 12499 2699e0f3f54a
child 12501 4548234cccf9
[test] Remove upper bound for cubicweb-localperms Version 0.4.0 does not use a deprecated API that we are planning to drop in forthcoming changesets. This requires changing expected values in unittest_cwconfig.py where we scan install cubes. * In CubicWebConfigurationTC.test_available_cubes(), localperms disappears from the list of expected cubes because this test method will look for new style cubes in located in cubicweb/test/data/libpython/ (we patch pkg_resources.iter_entry_points()) as well as old style cubes installed in $PREFIX/share/cubicweb/cubes; since the new cubicweb-localperms version is new-style, it won't be catched by this method. * In CubicWebConfigurationWithLegacyCubesTC.test_available_cubes(), localperms is still listed, but now with the package name, because this method will simply look at installed cubes whether old or new style.
cubicweb/test/unittest_cwconfig.py
requirements/test-misc.txt
--- a/cubicweb/test/unittest_cwconfig.py	Thu Mar 14 16:44:53 2019 +0100
+++ b/cubicweb/test/unittest_cwconfig.py	Thu Mar 14 14:38:55 2019 +0100
@@ -125,7 +125,7 @@
     def test_available_cubes(self, mock_iter_entry_points):
         expected_cubes = [
             'card', 'comment', 'cubicweb_comment', 'cubicweb_email', 'file',
-            'cubicweb_file', 'cubicweb_forge', 'localperms',
+            'cubicweb_file', 'cubicweb_forge',
             'cubicweb_mycube', 'tag',
         ]
         self.assertEqual(self.config.available_cubes(), expected_cubes)
@@ -215,7 +215,7 @@
             'email',
             'file',
             'forge',
-            'localperms',
+            'cubicweb_localperms',
             'mycube',
             'tag',
         ]
--- a/requirements/test-misc.txt	Thu Mar 14 16:44:53 2019 +0100
+++ b/requirements/test-misc.txt	Thu Mar 14 14:38:55 2019 +0100
@@ -11,7 +11,7 @@
 mock
 #fyzz XXX pip install fails
 cubicweb-file == 1.18.0
-cubicweb-localperms == 0.3.2
+cubicweb-localperms
 cubicweb-tag == 1.8.3
 
 ## cubicweb/devtools/test